From 975ad7f620b5f8b6c2c0c123ebe1697ab78ff4d3 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Fri, 16 Feb 2018 09:51:27 +0100 Subject: [PATCH] Disable all flake8 checks not indicating errors With this change in place, here's what I get from flake8. Especially the warningas about accessing undefined variables are suspicious: ``` src/blam.py:38:1: F811 redefinition of unused 'math' from line 20 src/blam.py:249:42: F812 list comprehension redefines 'r' from line 246 src/blam.py:375:5: F841 local variable 'cIn' is assigned to but never used src/blam.py:696:13: F841 local variable 'f' is assigned to but never used src/blam.py:943:9: F841 local variable 'Qba' is assigned to but never used src/blam.py:947:9: F841 local variable 'Qca' is assigned to but never used src/blam.py:948:9: F841 local variable 'Qcb' is assigned to but never used src/blam.py:1145:9: F841 local variable 'k1' is assigned to but never used src/blam.py:1146:9: F841 local variable 'firstFace' is assigned to but never used src/blam.py:1210:32: F821 undefined name 'f10Idx' src/blam.py:1224:32: F821 undefined name 'f10dx' src/blam.py:1435:9: F841 local variable 'scn' is assigned to but never used src/blam.py:1611:9: F841 local variable 'FuFv' is assigned to but never used ``` --- .gitignore | 1 + setup.cfg | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 setup.cfg diff --git a/.gitignore b/.gitignore index c3ee062..8731e0e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_Store *.blend* +/env/ diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..0b39a21 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[flake8] +ignore=E501,E502,E111,E265,E711,E401,E402,E202,E201,E221,E222,E227,E231,E226,E251,E262,E261,E271,E301,E302,E303,E305,E704,E272,E241,E225,E701,E713,E721,W291,W293