Add flake8 config

When running the checkcode.sh script, if no flake8 config file is
present then all error codes will be emitted. This may include error
codes from flake8 plugins installed locally which are not relevant for
this project (such as the flake8-black plugin). To prevent this issue we
add a flake8 config file which enables the built-in error codes C, E, F
and W.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Paul Barker 2020-06-15 23:03:02 +02:00 committed by Jan Kiszka
parent c2bbfee8f3
commit 04e5a2487c

2
.flake8 Normal file
View File

@ -0,0 +1,2 @@
[flake8]
select = C,E,F,W