-
Notifications
You must be signed in to change notification settings - Fork 8
/
.flake8
52 lines (52 loc) · 1.18 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
[flake8]
ignore =
# No space before colon
E203,
W503,
# Ignore using dict() function.
C408,
# Missing docstring in __init__ (we do it in the class)
D107,
# "First line should be in imperative mood" -- this doesn't work for properties, see https://github.com/PyCQA/pydocstyle/issues/301
D401,
# allow method names to be the same as python builtins
A003,
# allow module names to be the same as python builtins
A005,
# inline strong start-string without end-string. This is OK in the case of **kwargs in parameters.
RST210,
# Logging statement uses f-string.
G004,
# Logging statement uses + (this makes no sense...)
G003,
# Allow builtin module names
A005,
max-line-length = 88
# Should be 18.
max-complexity = 35
exclude =
development/*
per-file-ignores =
# print statements allowed in tests
hera_sim/tests/*:D,RST,T001,T201
docs/conf.py:D,A
*/__init__.py:F401
scripts/*:T001,T201
hera_sim/components.py:T001
rst-roles =
class
func
mod
data
const
meth
attr
exc
obj
rst-directives =
note
warning
versionadded
versionchanged
deprecated
seealso