-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.cfg
39 lines (36 loc) · 1.53 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
[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
[pylint.MESSAGES CONTROL]
# disable some default pylint warnings and errors
disable=abstract-method, # raises false positives in beam
arguments-differ, # raises false positives in beam
bad-indentation, # covered by yapf
broad-exception-raised, # bad rule
consider-using-with, # better handled by reviewer judgement
duplicate-code, # better handled by reviewer judgement
fixme, # bad rule
import-error, # raises false positives
line-too-long, # covered by yapf
logging-fstring-interpolation, # not worth the optimization
no-member, # raises false positives
no-name-in-module, # raises false positives
superfluous-parens, # doesn't work well with beam
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
useless-super-delegation # contradicts super-init-not-called
[pylint.FORMAT]
# Allow some single and two letter variables, but keep overall invalid-name rule
# Also allow censoredplanet-analysis as a module name
good-names=i,j,k,f,ex,e,_,p,ip,cm,censoredplanet-analysis
# Don't require docstring for short code segments
docstring-min-length=10