-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
51 lines (47 loc) · 1.54 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
# This is the last version supporting python 3.7
rev: v4.4.0
hooks:
# This one has been added to fail fast on syntax errors
# before running expensive pylint
- id: check-ast
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
- id: check-yaml
types: [file]
files: \.(yaml|yml)$
- repo: https://github.com/pylint-dev/pylint.git
# This is the last version supporting python 3.7
rev: v2.17.7
hooks:
- id: pylint
alias: mirrorpylint
require_serial: true
types:
- python
exclude: "^[^/]*env/|dev-[^/]*/|docs/"
# entry: env PYTHONPATH=. pylint
args: [-j, "4", --source-roots, .]
- repo: https://github.com/pre-commit/mirrors-mypy.git
# This is the last version supporting python 3.7
rev: v1.4.1
hooks:
- id: mypy
alias: mirrormypy
types_or:
- python
- pyi
exclude: "/(site-packages|development-[^/]*|docs|node_modules|__pycache__|\\..*)/$"
require_serial: true
# entry: env PYTHONPATH=. mypy
args: [--strict, --show-error-codes, --no-warn-unused-ignores, --python-executable, .r/bin/python]
- repo: https://github.com/ambv/black.git
# This is the last version supporting python 3.7
rev: 23.3.0
hooks:
- id: black
exclude: "^[^/]*env/|development-[^/]*/|docs/"