-
Notifications
You must be signed in to change notification settings - Fork 10
/
.flake8
26 lines (23 loc) · 1.13 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ********************************
# |docname| - Flake8 configuration
# ********************************
# See the `docs <https://flake8.pycqa.org/en/latest/user/configuration.html>`_ for more details.
[flake8]
# Although there is a `max-doc-length <https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-max-doc-length>`_, setting this still produces lots of error about long lines, even if those lines are just a comment. The docs on `max-line-length <https://flake8.pycqa.org/en/latest/user/options.html#cmdoption-flake8-max-line-length>`_ states that it applies to ALL lines -- including comments -- unless they contain a URL or a string. So, set this to allow long comments.
max-line-length = 50000
extend-ignore =
# Black formats this differently.
E203
# The Sphinx-generated ``conf.py`` files break this rule a lot.
E265
per-file-ignores =
# The indents for the in-line JS code make flake8 unhappy.
CodeChat/SourceClassifier.py: E131
# Exclude generated files and the test file with lots of weird formatting.
exclude =
build
_build
CommentDelimiterInfo.py
CodeToRest_test.py
docs
.venv