-
Notifications
You must be signed in to change notification settings - Fork 14
/
.pre-commit-config.yaml
33 lines (30 loc) · 962 Bytes
/
.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
exclude: "README.md"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
exclude: ^(imagenet_evaluation/external/|imagenet_evaluation/utils/)
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
exclude: ^(imagenet_evaluation/external/|imagenet_evaluation/utils/)
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
args:
- --profile=black
name: isort (python)
exclude: ^(imagenet_evaluation/external/|imagenet_evaluation/utils/)
- repo: https://github.com/PyCQA/flake8
rev: 3.9.0
hooks:
- id: flake8
args:
- --max-line-length=88
- --ignore=D107,W503,D402,D100
- --exclude=test*,check*,imagenet_evaluation/external/*,imagenet_evaluation/utils/*
additional_dependencies: [flake8-docstrings]