-
Notifications
You must be signed in to change notification settings - Fork 88
/
setup.cfg
103 lines (91 loc) · 2.34 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
[flake8]
enable-extensions = G
exclude =
.git
.venv
tinkoff/invest/grpc
ignore =
A002 ; argument "id" is shadowing a python builtin
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.
IF100 ; don`t use "[on_true] if [expression] else [on_false]" syntax
max-complexity = 8
max-line-length = 88
show-source = true
per-file-ignores =
examples/*:T001,T003
tests/*:W0621
tests/*:S311
[mypy]
ignore_missing_imports = True
no_implicit_optional = true
[mypy-tests.*]
disallow_untyped_defs = false
[mypy-tinkoff.invest.caching.instruments_cache.*]
ignore_errors = true
[mypy-tinkoff.invest.mock_services.*]
ignore_errors = true
[isort]
balanced_wrapping = true
default_section = THIRDPARTY
include_trailing_comma=True
known_first_party =
tinkoff
examples
tests
skip =
tinkoff/invest/grpc
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=2
max-public-methods=30
max-returns=5
max-statements=30
output-format = colorized
disable=
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
C0111, ; Missing module docstring (missing-docstring)
E0213, ; Method should have "self" as first argument (no-self-argument) - N805 for flake8
R0901, ; Too many ancestors (m/n) (too-many-ancestors)
R0903, ; Too few public methods (m/n) (too-few-public-methods)
R0801, ; duplicate-code
W0621, ; Redefining name from outer scope
W0622, ; Redefining built-in 'name' (redefined-builtin)
R0913, ; Too many arguments
ignored-classes=
contextlib.closing
ignore =
tinkoff/invest/grpc,
tests,
generated-members=
stoporders_pb2.*,
operations_pb2.*,
sandbox_pb2.*,
users_pb2.*,
orders_pb2.*,
marketdata_pb2.*,
instruments_pb2.*,
[coverage:run]
omit =
**/__main__.py
**/.venv/*
**/site-packages/*
tests/*
examples/*
scripts/*
tinkoff/invest/grpc/*
branch = True
[coverage:report]
show_missing = True
skip_covered = True
fail_under = 72.9