forked from microsoft/presidio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
29 lines (29 loc) · 1.03 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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
exclude: ^tests/
- repo: https://github.com/pycqa/flake8
rev: 3.9.0
hooks:
- id: flake8
additional_dependencies: [
'pep8-naming',
'flake8-docstrings',
]
args: ['--max-line-length=88',
'--docstring-convention=numpy',
# 'PEP8 Rules' to ignore in tests. Ignore documentation rules for all tests
# and ignore long lines / whitespaces for e2e-tests where we define jsons in-code.
'--per-file-ignores=**/tests/**.py:D docs/**.py:D e2e-tests/**.py:D,E501,W291,W293 docs/samples/deployments/spark/notebooks/*.py:E501,F821,D103',
'--extend-ignore=
E203,
D100,
D202,
ANN101,
ANN102,
ANN204,
ANN203'
]