-
Notifications
You must be signed in to change notification settings - Fork 0
/
.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: 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.5.4
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.20240606.1
hooks:
- id: check-ruff-versions