.flake8 - Flake8 configuration

See the docs for more details.

[flake8]

Although there is a 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 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