This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.flake8
67 lines (63 loc) · 1.51 KB
/
.flake8
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
62
63
64
65
66
67
[flake8]
min_python_version = 3.10
count = true
max-line-length = 120
show_source = True
statistics = True
# Mostly taken from the flake8 documentation
ignore =
# F812: list comprehension redefines ...
F812,
# H101: Use TODO(NAME)
H101,
# H202: assertRaises Exception too broad
H202,
# H233: Python 3.x incompatible use of print operator
H233,
# H301: one import per line
H301,
# H306: imports not in alphabetical order (time, os)
H306,
# H401: docstring should not start with a space
H401,
# H403: multi line docstrings should end on a new line
H403,
# H404: multi line docstring should start without a leading new line
H404,
# H405: multi line docstring summary not separated with an empty line
H405,
# H501: Do not use self.__dict__ for string formatting
H501
# T101: Fix todos
T101
# E402: module level import not at top of file
E402
# CFQ002: Function has 7 arguments that exceeds max allowed 6
CFQ002
# CFQ004: Function has 8 returns that exceeds max allowed 3
CFQ004
# E722: do not use bare 'except'
E722
# W503: line break before binary operator
W503
# E203: whitespace before ':'
E203
per-file-ignores =
# imported but unused
__init__.py: F401, F403, W291
exclude =
.git,
.idea,
.vs,
.vscode,
__pycache__,
docs,
build,
dist,
venv,
breaking,
.github,
tests-dev,
accept-encodings = utf-8
max-complexity = 19
docstring-convention = numpy