add a todo list
[docutils.git] / docutils / tox.ini
blobe20a832298e46dc0f4c5494b6d1cbcd5bf340be1
1 [tox]
2 minversion = 2.0
3 envlist = py{27,35,36,37,38,39,310}
5 [testenv]
6 whitelist_externals =
7 find
8 commands =
9 find . -type f -name "*.pyc" -delete
10 python test/alltests.py
12 [testenv:style]
13 deps =
14 flake8
15 commands =
16 flake8 {toxinidir}
18 [flake8]
19 # The following rules are ignored as they're stylistic and can be addressed at
20 # a later point:
22 # E101 indentation contains mixed spaces and tabs
23 # E111 indentation is not a multiple of four
24 # E114 indentation is not a multiple of four (comment)
25 # E115 expected an indented block (comment)
26 # E116 unexpected indentation (comment)
27 # E117 over-indented
28 # E121 continuation line under-indented for hanging indent
29 # E122 continuation line missing indentation or outdented
30 # E123 closing bracket does not match indentation of opening bracket's line
31 # E124 closing bracket does not match visual indentation
32 # E125 continuation line with same indent as next logical line
33 # E126 continuation line over-indented for hanging indent
34 # E127 continuation line over-indented for visual indent
35 # E128 continuation line under-indented for visual indent
36 # E129 visually indented line with same indent as next logical line
37 # E131 continuation line unaligned for hanging indent
38 # E201 whitespace after '('
39 # E202 whitespace before '}'
40 # E203 whitespace before ':'
41 # E211 whitespace before '('
42 # E221 multiple spaces before operator
43 # E222 multiple spaces after operator
44 # E225 missing whitespace around operator
45 # E226 missing whitespace around arithmetic operator
46 # E228 missing whitespace around modulo operator
47 # E231 missing whitespace after ','
48 # E241 multiple spaces after ':'
49 # E251 unexpected spaces around keyword / parameter equals
50 # E261 at least two spaces before inline comment
51 # E262 inline comment should start with '# '
52 # E265 block comment should start with '# '
53 # E266 too many leading '#' for block comment
54 # E271 multiple spaces after keyword
55 # E301 expected 1 blank line, found 0
56 # E302 expected 2 blank lines, found 1
57 # E303 too many blank lines (N)
58 # E305 expected 2 blank lines after class or function definition, found 1
59 # E306 expected 1 blank line before a nested definition, found 0
60 # E401 multiple imports on one line
61 # E402 module level import not at top of file
62 # E501 line too long (N > 79 characters)
63 # E502 the backslash is redundant between brackets
64 # E701 multiple statements on one line (colon)
65 # E704 multiple statements on one line (def)
66 # E711 comparison to None should be 'if cond is not None:'
67 # E713 test for membership should be 'not in'
68 # E721 do not compare types, use 'isinstance()'
69 # E722 do not use bare 'except'
70 # E731 do not assign a lambda expression, use a def
71 # E741 ambiguous variable name 'a'
72 # W191 indentation contains tabs
73 # W291 trailing whitespace
74 # W293 blank line contains whitespace
75 # W391 blank line at end of file
76 # W503 line break before binary operator
77 # W504 line break after binary operator
78 # F401 'foo' imported but unused
79 # F841 local variable 'foo' is assigned to but never used
81 # The following rules are required for Python 3 support and so are not
82 # disabled
84 # W605 invalid escape sequence '\ '
85 # W601 .has_key() is deprecated, use 'in'
86 # W602 deprecated form of raising exception
87 # F811 redefinition of unused 'foo' from line 79
89 # Similarly, the following are straight up bugs that should be addressed
90 # immediately:
92 # E999 SyntaxError: invalid syntax
93 # F404 from __future__ imports must occur at the beginning of the file
94 # F821 undefined name 'foo'
95 ignore = E101,E111,E114,E115,E116,E117,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E201,E202,E203,E211,E221,E222,E225,E226,E228,E231,E241,E251,E261,E262,E265,E266,E271,E301,E302,E303,E305,E306,E401,E402,E501,E502,E701,E704,E711,E713,E721,E722,E731,E741,W191,W291,W293,W391,W503,W504,W605,F401,F841
96 exclude = .venv,.tox,dist,*egg,build
97 max-complexity = 35
98 # Some rules are disabled for specific files (requires flake8 3.7.0)
100 # F821, disabled due to use of 'settings_overrides'
101 per-file-ignores =
102 docutils/test/functional/tests/*:F821