File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11fail_fast : true
22
33repos :
4+ - repo : https://github.com/pre-commit/pre-commit-hooks
5+ rev : v4.4.0
6+ hooks :
7+ # This one has been added to fail fast on syntax errors
8+ # before running expensive pylint
9+ - id : check-ast
10+ types_or :
11+ - python
12+ - pyi
13+ exclude : " /(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\ ..*)/$"
14+ - id : check-yaml
15+ types : [file]
16+ files : \.(yaml|yml)$
417 - repo : local
518 hooks :
619 - id : pylint
1023 types :
1124 - python
1225 exclude : " ^[^/]*env/|dev-[^/]*/"
13- entry : pylint -j 0
26+ entry : pylint
27+ args : [-j , "4", --source-roots, .]
1428 - id : mypy
1529 name : Local MyPy
1630 language : system
2034 exclude : " ^[^/]*env/|dev-[^/]*/"
2135 require_serial : true
2236# entry: ./basic-installer.bash mypy --strict
23- entry : mypy --strict --show-error-codes --no-warn-unused-ignores
37+ entry : mypy
38+ args : [--strict, --show-error-codes, --no-warn-unused-ignores]
2439# Main problem: python executable path, used to find the environment is hard
2540# - repo: https://github.com/pre-commit/mirrors-mypy.git
2641# rev: v1.2.0
3954 rev : 23.3.0
4055 hooks :
4156 - id : black
42- exclude : " ^[^/]*env/|dev-[^/]*/"
57+ name : black_apply
58+ exclude : " ^[^/]*env/|development-[^/]*/|docs/"
59+ stages : [manual]
60+ - id : black
61+ exclude : " ^[^/]*env/|development-[^/]*/|docs/"
4362 args : [--diff, --check]
You can’t perform that action at this time.
0 commit comments