flake8: Add config
We eventually want to use our standard "max line length 118" config from other projects, but currently the tests use line lengths up to 149. Bound it to that value at least. Disable "module level import not at top of file" for the time being. The tests need to be updated to Cockpit's current test shebang for that, plus adjusting it for the local common/helpers. Also disable "ambiguous varialbe name `l`" -- too many tests use this, and it's a handy shortcut.
This commit is contained in:
parent
d433199b3f
commit
1159585726
1 changed files with 8 additions and 0 deletions
8
.flake8
Normal file
8
.flake8
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[flake8]
|
||||
# we want 118, but fix tests first
|
||||
#max-line-length = 118
|
||||
max-line-length = 149
|
||||
# E402: module level import not at top of file; needs updating the tests to current cockpit standard
|
||||
# W504: line break after binary operator
|
||||
# E741: ambiguous variable name 'l'
|
||||
ignore = E402, W504, E741
|
||||
Loading…
Reference in a new issue