-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
85 lines (74 loc) · 2.24 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
ci:
autoupdate_schedule: weekly
autofix_commit_msg: "🐛 fix: pre-commit auto fix"
autofix_prs: true
autoupdate_commit_msg: "🔧 chore (deps): pre-commit auto update dependencies"
exclude: ^(src/utils/update.py)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
# - id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-yaml
args:
- "--allow-multiple-documents"
- id: trailing-whitespace
exclude: "^(docs/README.md|src/constants.py|assets/utils/ascii_banner.txt)"
- id: end-of-file-fixer
exclude: "^(docs/README.md)"
- id: debug-statements
# - id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
# - id: pretty-format-json
# - repo: https://github.com/asottile/setup-cfg-fmt
# rev: v2.5.0
# hooks:
# - id: setup-cfg-fmt
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
hooks:
- id: pyupgrade
- repo: https://github.com/pylint-dev/pylint
rev: v3.2.5
hooks:
- id: pylint
types: [python]
args: ["--rcfile=.pylintrc", "--disable=F0401"]
# - repo: https://github.com/sourcery-ai/sourcery
# rev: v1.15.0
# hooks:
# - id: sourcery
# # The best way to use Sourcery in a pre-commit hook:
# # * review only changed lines:
# # * omit the summary
# args: [--diff=git diff HEAD, --no-summary]
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
hooks:
- id: ruff
- id: ruff-format
# - repo: https://github.com/PyCQA/isort
# rev: "5.13.2"
# hooks:
# - id: isort
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
exclude: "config-sample.yml"
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.3"
hooks:
- id: editorconfig-checker
exclude: "^(docs/README.md)"