-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.cfg
169 lines (161 loc) · 4.52 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[tool:pytest]
python_files = test_*.py
python_functions = test_*
python_classes = *Test Test*
filterwarnings =
ignore::DeprecationWarning
ignore::FutureWarning
log_level = INFO
markers =
freeze_time: pytest-freezegun
addopts = -v
[flake8]
max-line-length = 120
max-complexity = 20
show-source = true
exclude =
data
__init__.py
enable-extensions = G
ignore =
# whitespace before ':'
E203,
# whitespace before ':'
E231,
# 'NumeralNormalizer.normalize_numbers_by_tokens' is too complex (21)
C901,
# line break before binary operator
W503,
# XXX is a python builtin, consider renaming the class attribute
A003,
# "id" is a python builtin and is being shadowed, consider renaming the variable
A001,
# first argument of a method should be named 'self'
N805,
# fixture does not return anything, add leading underscore
PT004,
# set the match parameter in pytest.raises(ValueError)
PT011,
# pytest.raises() block should contain a single simple statement
PT012,
# fixture ... without value is injected as parameter, use @pytest.mark.usefixtures instead
PT019,
# Missing docstring in public module
D100,
# Missing docstring in public class
D101,
# Missing docstring in public method
D102,
# Missing docstring in public function
D103,
# Missing docstring in public package
D104,
# Missing docstring in magic method
D105,
# Missing docstring in public nested class
D106,
# Missing docstring in __init__
D107,
# 1 blank line required between summary line and description
D205,
# No whitespaces allowed surrounding docstring text
D210,
# First line should be in imperative mood; try rephrasing
D401,
# Unnecessary dict call - rewrite as a literal
C408,
# assertion should be broken down into multiple parts
PT018,
# fixture <FIXTURE> without value is injected as parameter
PT019,
F821,
# wrong name(s) type in @pytest.mark.parametrize, expected tuple
PT006,
# wrong values type in @pytest.mark.parametrize, expected list of tuples
PT007,
# don`t use "[on_true] if [expression] else [on_false]" syntax
IF100,
# found duplicate test cases (5, 8) in @pytest.mark.parametrize
PT014,
# Logging statement uses exception in arguments
G200,
# you shouldn`t assign value to variable if it will be use only as return value
R504,
per-file-ignores =
factory.py:E800
hdbscan.py:E712,W504
test_hdbscan.py:N803
[isort]
multi_line_output=3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
balanced_wrapping = true
default_section = THIRDPARTY
known_first_party = src,tests
[pylint]
good-names=i,j,k,e,x,y,m,_,es
max-module-lines=300
max-line-length=120
output-format = colorized
generated-members=pydantic, torch
ignored-classes=
extension-pkg-whitelist=lru,pydantic.error_wrappers,pydantic.dataclasses
signature-mutators=pytest.fixture,src.train.decorators.ddp_experiment,src.train.decorators.wandb_experiment
enable=use-symbolic-message-instead,R
disable=
# --disable option
R0022,
# to many local variables (TODO: remove)
R0914,
# Constant name "logger" doesn't conform to UPPER_CASE naming style (invalid-name)
C0103,
# Missing module docstring (missing-docstring)
C0111,
# Method should have "self" as first argument (no-self-argument) - N805 for flake8
E0213,
# Method could be a function (no-self-use)
R0201,
# Too few public methods (m/n) (too-few-public-methods)
R0903,
# Fixme
W0511,
# Wrong hanging indentation before block (add 4 spaces)
C0330,
# (redefined-outer-name)
W0621,
# Use percent formatting in logging functions and pass the percent parameters as arguments
W1202,
# Catching too general exception Exception
W0703,
# No name in module
E0611,
# Too many arguments
R0913,
# Too many nested blocks (8/5) (too-many-nested-blocks)
R1702,
# Too many branches
R0912,
# Too many statements
R0915,
# Too many lines in module
C0302,
# Too many instance attributes
R0902,
# Import outside toplevel
C0415,
# Formatting a regular string which could be a f-string
C0209,
# unfortunately, min-similarity-lines doesn`t work
duplicate-code,
# Redefining built-in 'input'
W0622,
# Too many ancestors
R0901,
# logging-fstring-interpolation
W1203,
ignore=
data
ignore-patterns=