-
Notifications
You must be signed in to change notification settings - Fork 57
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.37 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: "^circuits/web/parsers/multipart.py$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: pretty-format-json
args:
- --autofix
- --no-ensure-ascii
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
# - id: python-check-blanket-noqa
- id: python-no-eval
exclude: "^tests/"
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/pycqa/flake8
rev: '7.0.0'
hooks:
- id: flake8
exclude: "^docs/"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.3.4'
hooks:
- id: ruff
- id: ruff
alias: "ruff-fix"
stages: [ manual ]
args: ["--fix", "--unsafe-fixes"]
- id: ruff
alias: "ruff-statistics"
stages: [ manual ]
args: ["--statistics"]
- id: ruff
alias: "ruff-isort"
args: ["--select", "I", "--fix"]
- id: ruff-format
- id: ruff-format
alias: "ruff-format-check"
stages: [ manual ]
args: ["--check"]