-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
61 lines (61 loc) · 1.9 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: double-quote-string-fixer
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args:
- --profile=black
- --line-length=79
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args:
- --line-length=79
- --skip-string-normalization
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-docstrings
- flake8-annotations
args:
- --max-doc-length=72
- --docstring-convention=numpy
# D100 Missing docstring in public module
# D104 Missing docstring in public package
# D105 Missing docstring in magic method
# D200 One-line docstring should fit on one line with quotes
# D205 1 blank line required between summary line and description
# D301 Use r""" if any backslashes in a docstring
# D400 First line should end with a period
# D401 First line should be in imperative mood
# ANN002 Missing type annotation for *args
# ANN003 Missing type annotation for **kwargs
# ANN101 Missing type annotation for self in method
# ANN102 Missing type annotation for cls in classmethod
# ANN401 Dynamically typed expressions (typing.Any) are disallowed
# W503 Line break before binary operator
- --ignore=
- D100
- D104
- D105
- D200
- D205
- D301
- D400
- D401
- ANN002
- ANN003
- ANN101
- ANN102
- ANN401
- W503