Skip to content

Flake8

Flake8: Your Tool For Style Guide Enforcement

Configuration

Rules

Ignoring Errors with Flake8

In-line Ignoring Errors:

example = lambda: 'example'  # noqa: E731
example = 10  # noqa

Commandline:

flake8 --ignore=E1,E23,W503 path/to/files/ path/to/more/files/

Ignoring Entire Files:

  • By explicitly adding it to our list of excluded paths (see: flake8 --exclude)
  • By adding # flake8: noqa to the file

See also

Favorite site