-
Notifications
You must be signed in to change notification settings - Fork 36
/
.pre-commit-config.yaml
59 lines (59 loc) · 1.58 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
repos:
- repo: https://github.com/python/black.git
rev: 22.3.0
hooks:
- id: black
files: '\.py$'
exclude: '^explainaboard\/third_party\/.*\.py|_test\.py$'
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
name: flake8
additional_dependencies:
- flake8-absolute-import
- flake8-black>=0.1.1
- flake8-pep585>=0.1.6
entry: flake8
files: '\.py$'
- id: flake8
name: docstring
additional_dependencies:
- flake8-docstrings>=1.6
args:
- --docstring-convention=google
- --select=D
entry: flake8
exclude: '^explainaboard\/third_party\/.*\.py|_test\.py$'
files: '^explainaboard\/.*\.py$'
- id: flake8
name: future-import
additional_dependencies:
- flake8-future-import
args:
- --select=FI
entry: flake8
exclude: '^explainaboard\/third_party\/.*\.py'
files: '\.py$'
- repo: https://github.com/pycqa/isort.git
rev: 5.12.0
hooks:
- id: isort
files: '\.py$'
- repo: https://github.com/sondrelg/pep585-upgrade
rev: v1.0.1
hooks:
- id: upgrade-type-hints
files: '\.py$'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.981'
hooks:
- id: mypy
additional_dependencies:
- types-requests
files: '\.py$'
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.5.1
hooks:
- id: markdownlint-cli2
- id: markdownlint-cli2-fix