-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
31 lines (31 loc) · 1.08 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
31
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.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.6.5
hooks:
# i.e. `ruff check`
- id: ruff
args: [--output-format=concise]
# 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.20240606.1
hooks:
- id: check-ruff-versions