From 3b86189dd0fdf293708ac918334fd146f43b4021 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 19 Jul 2021 14:05:14 +0100 Subject: Create .flake8 Add .flake8 file - flake8 wont use pyproject.toml without a wrapper. e.g. flakehell or flake9 --- .flake8 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..2ae06c05 --- /dev/null +++ b/.flake8 @@ -0,0 +1,30 @@ +[flake8] +#show-source = True +# E265 = comment blocks like @{ section, which it can't handle +# E266 = too many leading '#' for block comment +# E731 = do not assign a lambda expression, use a def +# W293 = Blank line contains whitespace +# W504 = Line break after operator +# E704 = multiple statements in one line - used for @override +# TC002 = +# ANN = flake8-annotations +# TC, TC2 = flake8-type-checking +# D = flake8-docstrings + +# select = C,E,F,W ANN, TC, TC2 # to enable code. Disabled if not listed, including builtin codes +enable-extensions = TC, TC2 # only needed for extensions not enabled by default + +ignore = E265,E266,E731,E704, + W293, W504, + ANN0 ANN1 ANN2, + TC0, TC1, TC2 + # B, + A, + D, + RST, RST3 +max-line-length = 120 + +exclude = .tox,.venv,build,dist,doc,git/ext/,test + +rst-roles = # for flake8-RST-docstrings + attr,class,func,meth,mod,obj,ref,term,var # used by sphinx -- cgit v1.2.1