-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
55 lines (55 loc) · 1.67 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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: [--remove]
- id: check-yaml
- id: check-shebang-scripts-are-executable
- id: debug-statements
language_version: python3
- id: check-json
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
name: pydocstyle (application)
args: ["--convention=pep257", "--add-ignore=D100,D104,D107"]
language_version: python3
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
hooks:
- id: bandit
args: ["--skip=B314,B405,B406,B410"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [--filter-files]
files: \.py$
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
language_version: python3.9
- repo: https://github.com/rstcheck/rstcheck
rev: "v6.2.0" # released versions are too old
hooks:
- id: rstcheck
args: ["--ignore-messages", 'Duplicate implicit target.*|No directive entry for|Hyperlink target ".*" is not referenced.']
exclude: LICENSE.txt
types: [file]
files: \.rst$
additional_dependencies: [Sphinx]