-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup.cfg
67 lines (60 loc) · 2.28 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
[flake8]
enable-extensions = G
exclude = .git, venv
ignore =
A003 ; 'id' is a python builtin, consider renaming the class attribute
W503 ; line break before binary operator
G200 ; Logging statement uses exception in arguments
PT011 ; set the match parameter in pytest.raises({exception})
S101 ; use of assert detected (useless with pytest)
B008 ; Do not perform function calls in argument defaults.
B009 ; Do not call getattr with a constant attribute value, it is not any safer than normal property access.
IF100 ; don`t use "[on_true] if [expression] else [on_false]" syntax
S608 ; Possible SQL injection vector through string-based query construction
S403 ; Consider possible security implications associated with dill module
S301 ; Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
S311 ; Standard pseudo-random generators are not suitable for security/cryptographic purposes
E203 ; whitespace before
max-complexity = 8
max-line-length = 140
show-source = true
[mypy]
ignore_missing_imports = True
no_implicit_optional = True
[mypy-tests.*]
disallow_untyped_defs = False
[isort]
balanced_wrapping = true
default_section = THIRDPARTY
include_trailing_comma=True
known_first_party = tinvest,tests
multi_line_output = 3
line_length = 88
[pylint]
good-names=i,j,k,e,x,_,pk,id
max-args=5
max-attributes=10
max-bool-expr=5
max-module-lines=500
max-nested-blocks=3
max-public-methods=30
max-returns=5
max-statements=30
output-format = colorized
extension-pkg-whitelist=
pydantic
disable=
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
C0111, ; Missing module docstring (missing-docstring)
R0901, ; Too many ancestors (m/n) (too-many-ancestors)
R0903, ; Too few public methods (m/n) (too-few-public-methods)
R0801, ; duplicate-code
W0703, ; Catching too general exception Exception (broad-except)
W1203, ; Use lazy formatting in logging functions (logging-fstring-interpolation)
R0914, ; Too many local variables
R0913, ; Too many arguments
C0209, ; Formatting a regular string which could be a f-string
C0301, ; Line too long
E1101 ; Module '*' has no '*' member (no-member)
ignored-classes=
contextlib.closing,