-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.cfg
120 lines (99 loc) · 1.91 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[pydocstyle]
inherit = false
ignore = D213,D100,D104
match = .*/py
[pycodestyle]
max-line-length = 120
[isort]
sections =
FUTURE,
STDLIB,
THIRDPARTY,
FIRSTPARTY,
LOCALFOLDER
default_section = LOCALFOLDER
known_third_party =
numpy,
pandas,
keras,
tensorflow,
sklearn,
matplotlib,
scipy
multi_line_output = 3
lines_after_imports = 2
force_single_line = True
use_parentheses = True
ensure_newline_before_comments = True
line_length = 80
[flake8]
exclude =
.git
__pycache__,
docs/source/conf.py,
old,
build,
dist
.venv
max-complexity = 30
max-line-length = 120
ignore=W504
# ignore=W504,F401,E402,E266,E203,W503,C408,C416,B001
[bandit]
# targets: ['*.py']
# targets= .,modsecurity_parser.py
# targets: modsecurity_parser
targets = .
# exclude_dirs = ['tests','__pytest_cache__','.venv']
# exclude_dirs = ["*/tests/*", "*/.venv/*"]
exclude = ./.venv,./.pytest_cache,./tests,./.mypy_cache,__pycache__
[coverage:run]
branch = True
omit =
*/__main__.py
*/tests/*
*/venv/*
[coverage:report]
exclude_lines =
pragma: no cover
if __name__ == .__main__.:
[coverage:html]
directory = reports
[pylint.config]
[pylint.MASTER]
extension-pkg-whitelist=
numpy,
pandas,
keras,
tensorflow,
sklearn,
matplotlib,
scipy
[pylint.'MESSAGES CONTROL']
#disable=R,C
#enable=E,W
jobs=1
confidence=HIGH
# confidence=
disable=raw-checker-failed,
bad-inline-option,
locally-disabled,
file-ignored,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead,
# USER DEFINED
broad-except,
simplifiable-if-expression,
too-many-statements
#no-else-break
#too-many-branches
[pylint.FORMAT]
max-line-length=120
max-module-lines = 2000
# [tool:pytest]
# minversion = 6.0
# addopts = -ra -q
# testpaths =
# tests