-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.cfg
31 lines (28 loc) · 1.02 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
[mypy]
ignore_missing_imports = True
show_error_codes = True
disallow_untyped_defs = True
[yapf]
based_on_style = google
indent_width = 2
column_limit = 80
split_before_expression_after_opening_paren = True
[MESSAGES CONTROL]
# disable some default pylint warnings and errors
disable=bad-indentation, # covered by yapf
duplicate-code, # better handled by reviewer judgement
fixme, # bad rule
import-error, # raises false positives
line-too-long, # covered by yapf
no-member, # raises false positives
no-name-in-module, # raises false positives
too-many-arguments, # better handled by reviewer judgement
too-many-locals, # better handled by reviewer judgement
too-few-public-methods, # bad rule
too-many-public-methods, # bad rule
unused-variable # bad rule
[FORMAT]
# Allow some single and two letter variables, but keep overall invalid-name rule
good-names=i,j,k,f,ex,e,_,p,ip,cm
# Don't require docstring for short code segments
docstring-min-length=10