-
Notifications
You must be signed in to change notification settings - Fork 43
/
.pre-commit-config.yaml
37 lines (32 loc) · 1.05 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
- repo: https://github.com/pre-commit/mirrors-yapf
rev: 'v0.32.0'
hooks:
- id: yapf
name: "yapf"
- repo: https://github.com/pycqa/flake8
rev: '5.0.4' # pick a git hash / tag to point to
hooks:
- id: flake8
# args duplicated from setup.cfg as pre-commit flake8 is buggy using --config=setup.cfg
# perhaps .flake8 works?
args:
- "--ignore=D100, D101, D102, D103, D104, D202, D212, W503, N803, N806"
- "--max-line-length=120"
- "--docstring-convention=google"
- "--exclude=detectree2/data_loading/*,detectree2/models/train_tune.py"
- "--max-complexity=10"
# - "--config=setup.cfg"
additional_dependencies: [flake8-docstrings]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.971'
hooks:
- id: mypy
entry: mypy detectree2/
args: ['--config=setup.cfg']
language_version: python3.9
pass_filenames: false