diff options
author | 2023-09-04 16:26:19 +0100 | |
---|---|---|
committer | 2023-09-04 16:26:19 +0100 | |
commit | 432ac05376bb6dde8ba2fff0d81079004e413dec (patch) | |
tree | b018ceb8aa435cf2527350f0e8856afe513b9eec | |
parent | Bump all dependencies to latest (diff) |
Add pre-commit config
-rw-r--r-- | .pre-commit-config.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..bd37fe1 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] + - repo: local + hooks: + - id: ruff + name: ruff + description: Run ruff linting + entry: poetry run ruff check --force-exclude + language: system + 'types_or': [python, pyi] + require_serial: true + args: [--fix, --exit-non-zero-on-fix] |