Skip to content

Commit

Permalink
.flake8: ignore utils/diffconfig
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Marcus Folkesson <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
  • Loading branch information
ricardo-martincoski authored and jacmet committed Mar 13, 2018
1 parent 14aa15a commit 9324167
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[flake8]
exclude=
# copied from the kernel sources
utils/diffconfig
max-line-length=132

0 comments on commit 9324167

Please sign in to comment.