forked from speced/bikeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
88 lines (87 loc) · 2.88 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
[flake8]
ignore =
# just fires a bunch on list ranges
E203,
# misfires on some type annotations, don't care otherwise
E227,
# don't care
E265,
# black handles line lengths for me
E501,
# bare accept is fine
E722,
# don't care
E741,
# don't care
E743,
# handling unused imports elsewhere
F401,
# ditto
F405,
# flake8 doesn't understand typing overloads
F811,
# caught by pylint and I'm not silencing two things
F821,
# this 'error' is completely backward and will change eventually
W503,
N802,
N803,
N806,
N812,
N815,
N816,
max-line-length=300
per-file-ignores =
bikeshed/lint/__init__.py:F401
bikeshed/h/__init__.py:F401
bikeshed/markdown/__init__.py:F401
bikeshed/shorthands/__init__.py:F401
bikeshed/refs/__init__.py:F401
bikeshed/update/__init__.py:F401
bikeshed/wpt/__init__.py:F401
bikeshed/__init__.py:F401
bikeshed/config/__init__.py:F401
bikeshed/stringEnum/__init__.py:F401
[pylint.MESSAGES CONTROL]
disable=
arguments-differ,
broad-except,
broad-exception-raised,
c-extension-no-member, # seems to be weird false pos
consider-iterating-dictionary, # lol no
consider-using-f-string, # don't care
duplicate-code, # dont' care
eval-used, # needed
exec-used, # needed
fixme,
global-statement, # needed
import-outside-toplevel, # needed
inconsistent-return-statements, # don't care
invalid-name, # SUPER don't care
keyword-arg-before-vararg, # literally nonsensical
line-too-long, # black takes care of my line lengths
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
missing-timeout, # TODO: fix
no-else-break, # i prefer this actually
no-else-continue, # ditto
no-else-raise, # ditto
no-else-return, # ditto
pointless-string-statement, # fine as alt comment syntax
redefined-builtin,
superfluous-parens, # don't care
too-few-public-methods, # dumb
too-many-arguments, # dumb
too-many-boolean-expressions, # needed
too-many-branches, # needed
too-many-instance-attributes, # dumb
too-many-lines,
too-many-locals, # dumb
too-many-nested-blocks,
too-many-return-statements,
too-many-statements,
unsubscriptable-object, # false positives
unsupported-binary-operation, # false pos on type sigs, plus mypy catches anyway
use-dict-literal, # don't care
useless-return, # need it for mypy