releasing 0.19b1
[docutils.git] / tox.ini
blob7a2cbf9cac36b0f8b65399c087658c33549d477d
1 [flake8]
2 # Prolems that are either not fixed yet or allowed by PEP8:
3 ignore =
4 E123, # closing bracket does not match indentation of opening bracket's line
5 # PEP8 "may either line up under the first […] character of the last line …"
7 E125, # continuation line with same indent as next logical line
8 # allowed by PEP8 cf. https://github.com/PyCQA/pycodestyle/issues/126
10 E126, # continuation line over-indented for hanging indent
11 # some cases are mandated by PEP8 to distinguish hanging indent from nesting.
12 # Other cases improve readability.
14 E129, # visually indented line with same indent as next logical line
15 # allowed by PEP8
17 E226, # missing whitespace around arithmetic operator
18 E228, # missing whitespace around modulo operator
19 # not generally frowned on by PEP8:
20 # "If operators with different priorities are used, consider adding
21 # whitespace around the operators with the lowest priority(ies).
22 # Use your own judgment; …"
24 W503, # line break before binary operator
25 # this is the recommended style (changed on April 16th, 2016)
27 exclude = .venv,.tox,dist,*egg,build,sandbox/*
29 # Some rules are disabled for specific files (requires flake8 >= 3.7.0)
31 per-file-ignores =
32 # class definitions with "…: pass" on one line
33 docutils/docutils/__init__.py:E701
34 docutils/docutils/nodes.py:E701
35 docutils/docutils/io.py:E701
36 docutils/docutils/statemachine.py:E701
37 docutils/docutils/utils/__init__.py:E701
38 # start of error message should be visible in traceback
39 docutils/docutils/parsers/rst/directives/tables.py:E128
40 # complex regexp definitions
41 docutils/docutils/parsers/rst/states.py:E121,E128,E701
42 # deprecated module, will be removed
43 docutils/docutils/utils/error_reporting.py:E261
44 # module with 3rd-party origin
45 docutils/docutils/utils/math/math2html.py:E111,E114,E123,E241,E261,E501,E731
46 # generated auxiliary files
47 docutils/docutils/utils/math/unichar2tex.py:E122
48 docutils/docutils/utils/math/tex2unichar.py:E123,E261,E501
49 # allow aligning values in data-collections
50 docutils/docutils/utils/smartquotes.py:E241
51 docutils/docutils/utils/roman.py:E241,E701
52 docutils/docutils/utils/math/latex2mathml.py:E241,E261,E501,E701
53 docutils/docutils/writers/xetex/__init__.py:E241
54 # also allow '##' to mark deactivated code:
55 docutils/docutils/writers/latex2e/__init__.py:E241,E266
57 # included configuration files referencing externally defined variables
58 docutils/test/functional/tests/*:F821
59 # deprecated module, will be removed
60 docutils/test/test_error_reporting.py:E261
61 # test output samples contain long lines
62 # don't indent list delimiters in lists of test samples (multi-line strings)
63 docutils/test/test_readers/test_pep/*:E122,E128,E501
64 docutils/test/test_parsers/*:E122,E124,E128,E501
65 docutils/test/test_writers/*:E122,E124,E128,E501
66 docutils/test/test_transforms/*:E122,E124,E128,E501
67 docutils/test/test_publisher.py:E501
68 # raw string test samples with trailing whitespace
69 docutils/test/test_writers/test_manpage.py:E121,E128,E501,W291
70 docutils/test/test_writers/test_latex2e.py:E122,E128,E501,W291,W293
72 # ignore all errors when setting locale
73 docutils/tools/*.py:E722