forked from OpenMined/PySyft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
63 lines (62 loc) · 1.75 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-ast
- id: trailing-whitespace
- id: check-docstring-first
- id: check-json
- id: check-added-large-files
- id: check-yaml
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: debug-statements
- id: name-tests-test
exclude: ^(tests/syft/lib/allowlist_report.py)
- id: requirements-txt-fixer
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
# additional_dependencies:
# - flake8-kwarger
# - darglint
exclude: ^(src/syft/proto|examples/duet)
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
exclude: ^(src/syft/proto|examples/duet)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
exclude: ^(src/syft/proto|tests/syft/lib/python|examples/duet)
args: [
"--ignore-missing-imports",
"--scripts-are-modules",
"--disallow-incomplete-defs",
"--no-implicit-optional",
"--warn-unused-ignores",
"--warn-redundant-casts",
"--strict-equality",
"--warn-unreachable",
# "--disallow-untyped-decorators",
"--disallow-untyped-defs",
"--disallow-untyped-calls",
]
- repo: local
hooks:
- id: flynt
name: flynt
entry: flynt
args: [--fail-on-change]
types: [python]
language: python
additional_dependencies:
- flynt
- repo: https://github.com/pycqa/isort
rev: 5.7.0
hooks:
- id: isort
name: isort (python)