Enable the W504 binary operator rule in flake8 (#2825)
This commit is contained in:
parent
3d2673ac78
commit
6102a08c6d
2
.flake8
2
.flake8
|
|
@ -1,7 +1,7 @@
|
||||||
[flake8]
|
[flake8]
|
||||||
count = True
|
count = True
|
||||||
# Several of the following could be autofixed or improved by running the code through psf/black
|
# Several of the following could be autofixed or improved by running the code through psf/black
|
||||||
ignore = E128,E722,W191,W503,W504
|
ignore = E128,E722,W191,W503
|
||||||
max-complexity = 40
|
max-complexity = 40
|
||||||
max-line-length = 220
|
max-line-length = 220
|
||||||
show-source = True
|
show-source = True
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
on: [ push, pull_request ]
|
on: [ push, pull_request ]
|
||||||
name: flake8 linting (5 ignores)
|
name: flake8 linting (4 ignores)
|
||||||
jobs:
|
jobs:
|
||||||
flake8:
|
flake8:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,8 @@ class Help:
|
||||||
|
|
||||||
for entry in help.group_entries:
|
for entry in help.group_entries:
|
||||||
help_output += (
|
help_output += (
|
||||||
entry.description.ljust(max_desc_width, ' ') +
|
entry.description.ljust(max_desc_width, ' ')
|
||||||
', '.join(entry.keys) + '\n'
|
+ ', '.join(entry.keys) + '\n'
|
||||||
)
|
)
|
||||||
|
|
||||||
help_output += '\n'
|
help_output += '\n'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue