1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ exclude : " CHANGELOG.md|.copier-answers.yml|.all-contributorsrc"
4
+ default_stages : [pre-commit]
5
+
6
+ ci :
7
+ autofix_commit_msg : " chore(pre-commit.ci): auto fixes"
8
+ autoupdate_commit_msg : " chore(pre-commit.ci): pre-commit autoupdate"
9
+
1
10
repos :
11
+ - repo : https://github.com/pre-commit/pre-commit-hooks
12
+ rev : v5.0.0
13
+ hooks :
14
+ - id : debug-statements
15
+ - id : check-builtin-literals
16
+ - id : check-case-conflict
17
+ - id : check-docstring-first
18
+ - id : check-toml
19
+ - id : check-xml
20
+ - id : detect-private-key
21
+ - id : end-of-file-fixer
22
+ - id : trailing-whitespace
23
+ - repo : https://github.com/pre-commit/mirrors-prettier
24
+ rev : v4.0.0-alpha.8
25
+ hooks :
26
+ - id : prettier
27
+ args : ["--tab-width", "2"]
28
+ - repo : https://github.com/astral-sh/ruff-pre-commit
29
+ rev : v0.8.0
30
+ hooks :
31
+ - id : ruff
32
+ args : [--fix, --exit-non-zero-on-fix]
33
+ - id : ruff-format
2
34
- repo : https://github.com/asottile/pyupgrade
3
35
rev : v2.7.2
4
36
hooks :
5
37
- id : pyupgrade
6
38
args : [--py36-plus]
7
- - repo : https://github.com/psf/black
8
- rev : 20.8b1
9
- hooks :
10
- - id : black
11
- args :
12
- - --safe
13
- - --quiet
14
- files : ^((xbox|tests)/.+)?[^/]+\.py$
15
- - repo : https://gitlab.com/pycqa/flake8
16
- rev : 3.8.3
17
- hooks :
18
- - id : flake8
19
- additional_dependencies :
20
- # - flake8-docstrings==1.5.0
21
- - pydocstyle==5.1.1
22
- files : ^(xbox)/.+\.py$
23
- - repo : https://github.com/PyCQA/bandit
24
- rev : 1.6.2
25
- hooks :
26
- - id : bandit
27
- args :
28
- - --quiet
29
- - --format=custom
30
- - --configfile=bandit.yaml
31
- files : ^(xbox|tests)/.+\.py$
32
- - repo : https://github.com/PyCQA/isort
33
- rev : 5.5.3
34
- hooks :
35
- - id : isort
36
- - repo : https://github.com/pre-commit/pre-commit-hooks
37
- rev : v3.2.0
38
- hooks :
39
- - id : check-executables-have-shebangs
40
- stages : [manual]
41
- - id : check-json
42
- - repo : https://github.com/prettier/prettier
43
- rev : 2.0.4
44
- hooks :
45
- - id : prettier
46
- stages : [manual]
47
-
39
+ # - repo: https://github.com/pre-commit/mirrors-mypy
40
+ # rev: v1.11.2
41
+ # hooks:
42
+ # - id: mypy
43
+ # additional_dependencies: []
0 commit comments