.flake8: ignore utils/diffconfig
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Tue, 13 Mar 2018 03:09:45 +0000 (00:09 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 13 Mar 2018 21:37:54 +0000 (22:37 +0100)
This script comes from the kernel source, so ignore any code style
warnings for it in order to keep it as close as possible to the original
one, making synchronization between repos easier.

The option --exclude for flake8/pycodestyle is an absolute list and has
a default, so ideally the default values should be added too.
But the use cases for flake8 in the tree are:
 - when developing a new script or changing an existing one, the
   developer calls flake8 only on that script;
 - in the GitLab job, a list of all Python files to be tested is created
   and then passed to flake8.
None of these involve calling 'flake8' without parameters, so don't care
about adding the default value.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Marcus Folkesson <marcus.folkesson@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
.flake8

diff --git a/.flake8 b/.flake8
index afdb9679307693caaeb4aace2aff6b17a0303f46..7dd7b541cc058dba2693214b476160648d2e88ac 100644 (file)
--- a/.flake8
+++ b/.flake8
@@ -1,2 +1,5 @@
 [flake8]
+exclude=
+    # copied from the kernel sources
+    utils/diffconfig
 max-line-length=132