flake8: add exceptions for overly pedantic camelcase rules from pep8-naming (#11477)
Rules N813 and N814 prevented import statements like this: xml.etree.ElementTree as et xml.etree.ElementTree as ET But both of those seem pretty reasonable. We see no reason to require any camelcase import to be imported "as" a camelcase word.
This commit is contained in:
parent
f68f5e3014
commit
a750237532
2 changed files with 4 additions and 2 deletions
4
.flake8
4
.flake8
|
@ -24,7 +24,9 @@
|
||||||
#
|
#
|
||||||
# N8: PEP8-naming
|
# N8: PEP8-naming
|
||||||
# - N801: class names should use CapWords convention
|
# - N801: class names should use CapWords convention
|
||||||
|
# - N813: camelcase imported as lowercase
|
||||||
|
# - N814: camelcase imported as constant
|
||||||
#
|
#
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E129,E221,E241,E272,E731,W503,W504,F999,N801
|
ignore = E129,E221,E241,E272,E731,W503,W504,F999,N801,N813,N814
|
||||||
max-line-length = 79
|
max-line-length = 79
|
||||||
|
|
|
@ -20,5 +20,5 @@
|
||||||
# - F821: undefined name `name`
|
# - F821: undefined name `name`
|
||||||
#
|
#
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = E129,E221,E241,E272,E731,W503,W504,F405,F821,F999
|
ignore = E129,E221,E241,E272,E731,W503,W504,F405,F821,F999,N801,N813,N814
|
||||||
max-line-length = 79
|
max-line-length = 79
|
||||||
|
|
Loading…
Reference in a new issue