Debian Codegraph @

rpython/.flake8

raw
1 [flake8]
2 select =
3 # pycodestyle
4 E, W
5 # pyflakes
6 F
7
8 ignore =
9 E501 # line length
10 E502 # redundant backslashes
11 E111, E114, E115, E116, E117, E121, E122, E124, E125, E126, E127, E128, E129, E131 # indents
12 E203, E221, E222, E225, E226, E227, E228, E231, E241, E242, E251 # whitespace around operators
13 E261, E262, E265, E266 # whitespace on comments
14 E271, E272 # whitespace around keywords
15 E301, E302, E303, E305, E306 # newlines between classes/functions
16 E123 # bracket alignment
17 E401, E402 # import conventions
18 E731 # assigning lambdas
19 E741, E742, E743 # ambiguous names
20 E721 # use isinstance to compare types
21 E722 # bare except
22 F841 # unused variable
23 E201, E202, E211 # whitespace near brackets - TODO: maybe fix?
24 F403, F405 # * imports
25 F811 # redefining e.g. of 'class __extend__'
26 E701, E702, E703, E704 # multiple statements on line
27 W503, W504 # newline before/after operator
28 F632 # Use of 'is' to compare e.g. small ints
29 # XXX: undefined name. Ideally we would remove this, but it occurs in a lot
30 # of places. Usually when a function is called in a context other than
31 # where it is defined and the name is implicitly in that enclosing context.
32 F821
33 # TODO: the following could probably be fixed:
34 F401 # unused imports
35 E711, E712 # '== True'/False/None
36 E713, E714 # Use 'not in', and 'is not'
37 W605 # bad escape sequences - probably best to use r"" for regex strings
38 W291, W292, W293, W391 # trailing whitespace
39 # The following need fixing for Py3
40 W601 # has_key - TODO: replace with ' in '
41 W602 # raise Exc, Exc() - TODO: remove this
42 W604 # backticks - TODO: replace with repr()
43 # The following are probably accidental redefns and should be removed
44 F402 # redefinition in loop
45 F812 # redefinition in comprehension
46
47 exclude =
48 __pycache__ # There's no value in checking cache directories