Uncomment classifiers for Georgian and Catalan (Valencian) languages.
[docutils.git] / .flake8
blob526597a234f4b458524ad48bf192201ecfc4d87d
1 [flake8]
2 # Problems 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 # Allow exceptions for specific files (requires flake8 >= 3.7.0)
28 per-file-ignores =
29   # class definitions with "…: pass" on one line
30   docutils/docutils/__init__.py:E701
31   docutils/docutils/nodes.py:E701
32   docutils/docutils/io.py:E701
33   docutils/docutils/statemachine.py:E701
34   docutils/docutils/utils/__init__.py:E701
35   # start of error message should be visible in traceback
36   docutils/docutils/parsers/rst/directives/tables.py:E128
37   # complex regexp definitions
38   docutils/docutils/parsers/rst/states.py:E121,E128,E701
39   # deprecated module, will be removed
40   docutils/docutils/utils/error_reporting.py:E261
41   # module with 3rd-party origin
42   docutils/docutils/utils/math/math2html.py:E241,E501,E731
43   # generated auxiliary files
44   docutils/docutils/utils/math/unichar2tex.py:E122
45   docutils/docutils/utils/math/tex2unichar.py:E262,E501
46   docutils/docutils/utils/math/mathalphabet2unichar.py:E501
47   # allow aligning values in data-collections
48   docutils/docutils/utils/smartquotes.py:E241
49   docutils/docutils/utils/roman.py:E241,E701
50   docutils/docutils/utils/math/latex2mathml.py:E241,E501,E701
51   docutils/docutils/writers/xetex/__init__.py:E241
52   # also allow '##' to mark deactivated code:
53   docutils/docutils/writers/latex2e/__init__.py:E241,E266
55   # included configuration files referencing externally defined variables
56   docutils/test/functional/tests/*:F821
57   # deprecated module, will be removed
58   docutils/test/test_error_reporting.py:E261
59   # Lists with multi-line test output samples
60   # may contain long lines (E501)
61   # and are not indented (E122, E124, E128)
62   docutils/test/test_parsers/*:E122,E124,E128,E501
63   docutils/test/test_publisher.py:E501
64   docutils/test/test_readers/test_pep/*:E122,E128,E501
65   docutils/test/test_transforms/*:E122,E124,E128,E501
66   docutils/test/test_writers/*:E122,E124,E128,E501
67   # test output contains trailing whitespace
68   docutils/test/test_writers/test_manpage.py:E128,W291
70   # ignore long line in string templates
71   docutils/tools/dev/generate_punctuation_chars.py:E501
73 exclude =
74   .venv
75   .tox
76   dist
77   *egg
78   build
79   sandbox/*