-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
executable file
·60 lines (49 loc) · 1.27 KB
/
setup.cfg
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
[pydocstyle]
convention = google
# D413: Missing blank line after last section
add-ignore = D1, D413
[flake8]
max-line-length = 120
docstring-convention = google
import-order-style = smarkets
application_import_names = src
# D1 # Do not require docstrings
# W503 # Line break occurred before a binary operator (Should already be gone so...)
# E226 # Missing whitespace around arithmetic operator --> 0.1*b + 0.2*c is considered "wrong"
# A003 # Class attribute "id" is shadowing a python builtin --> COCO has a lot of "id" attributes
ignore = D1 W503 E226 A003
inline-quotes = double
# F401 # Imported but unused
# F403 # 'from module import *' used; unable to detect undefined names
per-file-ignores =
__init__.py: F401, F403
# Cyclomatic complexity for functions
max-complexity = 20
exclude =
env
venv
typings
[mypy]
allow_redefinition = True
ignore_missing_imports = True
strict_optional = False
# plugins = numpy.typing.mypy_plugin
exclude = (?x)(
venv
| env
)
[pylint.MAIN]
jobs=4
[pylint.FORMAT]
max-line-length = 120
[pylint.MESSAGE CONTROL]
disable=
fixme,
[pylint.VARIABLES]
ignored-argument-names=arg|args|kwargs|_.*
[pylint.DESIGN]
max-locals = 100
max-branches = 20
max-statements = 200
[pylint.MASTER]
ignore-paths = ^venv/.*$, ^env/.*$