-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
30 lines (30 loc) · 1.04 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-ast
types: [ python ]
- id: debug-statements
types: [ python ]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-yaml
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.9.7
hooks:
# i.e. `ruff check`
- id: ruff
# i.e. `ruff format --check`
- id: ruff-format
# Due to the Ruff config we use (see comment in pyproject.yaml), it's possible that the
# formatter creates linting failures. By only doing a check here, it forces the dev to run
# the formatter before pre-commit runs (presumably on save through their editor) and then
# the linting check above would always catch a problem created by the formatter.
args: [ --check ]
- repo: https://github.com/level12/pre-commit-hooks
rev: v0.20250226.1
hooks:
- id: check-ruff-versions