summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-10-21 00:10:39 +0000
committeraa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-10-21 00:10:39 +0000
commit9e2e1b339ada9976a4031ae961b58bc0922988ff (patch)
tree10d6afb2a02ae4e365f9140898d1130f9241a6b3
parentfdfce1a72e58bfc7289299ee1a5984df52bb2b67 (diff)
downloaddocutils-9e2e1b339ada9976a4031ae961b58bc0922988ff.tar.gz
Change to Unix line endings in ``docutils/.flake8``
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@9138 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--.flake8148
1 files changed, 74 insertions, 74 deletions
diff --git a/.flake8 b/.flake8
index e34952df4..2caa6f0e5 100644
--- a/.flake8
+++ b/.flake8
@@ -1,74 +1,74 @@
-[flake8]
-# Problems that are either not fixed yet or allowed by PEP8:
-ignore =
- E123, # closing bracket does not match indentation of opening bracket's line
- # PEP8 "may either line up under the first […] character of the last line …"
-
- E125, # continuation line with same indent as next logical line
- # allowed by PEP8 cf. https://github.com/PyCQA/pycodestyle/issues/126
-
- E126, # continuation line over-indented for hanging indent
- # some cases are mandated by PEP8 to distinguish hanging indent from nesting.
- # Other cases improve readability.
-
- E129, # visually indented line with same indent as next logical line
- # allowed by PEP8
-
- E226, # missing whitespace around arithmetic operator
- E228, # missing whitespace around modulo operator
- # not generally frowned on by PEP8:
- # "If operators with different priorities are used, consider adding
- # whitespace around the operators with the lowest priority(ies).
- # Use your own judgment; …"
-
- W503, # line break before binary operator
- # this is the recommended style (changed on April 16th, 2016)
-
-# Allow exceptions for specific files (requires flake8 >= 3.7.0)
-per-file-ignores =
- # class definitions with "…: pass" on one line
- docutils/__init__.py:E701
- docutils/nodes.py:E701
- docutils/io.py:E701
- docutils/statemachine.py:E701
- docutils/utils/__init__.py:E701
- # start of error message should be visible in traceback
- docutils/parsers/rst/directives/tables.py:E128
- # complex regexp definitions
- docutils/parsers/rst/states.py:E121,E128,E701
- # deprecated module, will be removed
- docutils/utils/error_reporting.py:E261
- # module with 3rd-party origin
- docutils/utils/math/math2html.py:E241,E501,E731
- # generated auxiliary files
- docutils/utils/math/unichar2tex.py:E122
- docutils/utils/math/tex2unichar.py:E123,E262,E501
- # allow aligning values in data-collections
- docutils/utils/smartquotes.py:E241
- docutils/utils/roman.py:E241,E701
- docutils/utils/math/latex2mathml.py:E241,E501,E701
- docutils/writers/xetex/__init__.py:E241
- # also allow '##' to mark deactivated code:
- docutils/writers/latex2e/__init__.py:E241,E266
-
- # included configuration files referencing externally defined variables
- test/functional/tests/*:F821
- # deprecated module, will be removed
- test/test_error_reporting.py:E261
- # test output samples contain long lines
- # don't indent list delimiters in lists of test samples (multi-line strings)
- test/test_readers/test_pep/*:E122,E128,E501
- test/test_parsers/*:E122,E124,E128,E501
- test/test_writers/*:E122,E124,E128,E501
- test/test_transforms/*:E122,E124,E128,E501
- test/test_publisher.py:E501
- # raw string test samples with trailing whitespace
- test/test_writers/test_manpage.py:E121,E128,E501,W291
- test/test_writers/test_latex2e.py:E122,E128,E501,W291,W293
-
-exclude =
- .venv
- .tox
- dist
- *egg
- build
+[flake8]
+# Problems that are either not fixed yet or allowed by PEP8:
+ignore =
+ E123, # closing bracket does not match indentation of opening bracket's line
+ # PEP8 "may either line up under the first […] character of the last line …"
+
+ E125, # continuation line with same indent as next logical line
+ # allowed by PEP8 cf. https://github.com/PyCQA/pycodestyle/issues/126
+
+ E126, # continuation line over-indented for hanging indent
+ # some cases are mandated by PEP8 to distinguish hanging indent from nesting.
+ # Other cases improve readability.
+
+ E129, # visually indented line with same indent as next logical line
+ # allowed by PEP8
+
+ E226, # missing whitespace around arithmetic operator
+ E228, # missing whitespace around modulo operator
+ # not generally frowned on by PEP8:
+ # "If operators with different priorities are used, consider adding
+ # whitespace around the operators with the lowest priority(ies).
+ # Use your own judgment; …"
+
+ W503, # line break before binary operator
+ # this is the recommended style (changed on April 16th, 2016)
+
+# Allow exceptions for specific files (requires flake8 >= 3.7.0)
+per-file-ignores =
+ # class definitions with "…: pass" on one line
+ docutils/__init__.py:E701
+ docutils/nodes.py:E701
+ docutils/io.py:E701
+ docutils/statemachine.py:E701
+ docutils/utils/__init__.py:E701
+ # start of error message should be visible in traceback
+ docutils/parsers/rst/directives/tables.py:E128
+ # complex regexp definitions
+ docutils/parsers/rst/states.py:E121,E128,E701
+ # deprecated module, will be removed
+ docutils/utils/error_reporting.py:E261
+ # module with 3rd-party origin
+ docutils/utils/math/math2html.py:E241,E501,E731
+ # generated auxiliary files
+ docutils/utils/math/unichar2tex.py:E122
+ docutils/utils/math/tex2unichar.py:E123,E262,E501
+ # allow aligning values in data-collections
+ docutils/utils/smartquotes.py:E241
+ docutils/utils/roman.py:E241,E701
+ docutils/utils/math/latex2mathml.py:E241,E501,E701
+ docutils/writers/xetex/__init__.py:E241
+ # also allow '##' to mark deactivated code:
+ docutils/writers/latex2e/__init__.py:E241,E266
+
+ # included configuration files referencing externally defined variables
+ test/functional/tests/*:F821
+ # deprecated module, will be removed
+ test/test_error_reporting.py:E261
+ # test output samples contain long lines
+ # don't indent list delimiters in lists of test samples (multi-line strings)
+ test/test_readers/test_pep/*:E122,E128,E501
+ test/test_parsers/*:E122,E124,E128,E501
+ test/test_writers/*:E122,E124,E128,E501
+ test/test_transforms/*:E122,E124,E128,E501
+ test/test_publisher.py:E501
+ # raw string test samples with trailing whitespace
+ test/test_writers/test_manpage.py:E121,E128,E501,W291
+ test/test_writers/test_latex2e.py:E122,E128,E501,W291,W293
+
+exclude =
+ .venv
+ .tox
+ dist
+ *egg
+ build