Colmjude

Notes

A collection of TILs, snippets and thoughts
<< Back to notes

Flake8

Last updated

The Digital Land team use flake8(style guide enforcement).

setup.cfg, in the root dir of your project, contains configuration rules for flake8. E.g.

[flake8]
max-line-length = 180
ignore = E203, W503

Exclude files

Exlude files using the --exclude option. It accepts a comma-separated list of patterns to ignore. E.g.

flake8 --exclude==.venv,node_modules .