Re-enable some flake8 checks.
This commit is contained in:
parent
33a2181e31
commit
503fc9f56b
13
.flake8
13
.flake8
@ -1,19 +1,10 @@
|
|||||||
# vim: ft=dosini fileencoding=utf-8:
|
# vim: ft=dosini fileencoding=utf-8:
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E241: Multiple spaces after ,
|
|
||||||
# E265: Block comment should start with '#'
|
# E265: Block comment should start with '#'
|
||||||
# checked by pylint:
|
|
||||||
# F401: Unused import
|
|
||||||
# E501: Line too long
|
# E501: Line too long
|
||||||
# F821: undefined name
|
|
||||||
# F841: unused variable
|
# F841: unused variable
|
||||||
# E222: Multiple spaces after operator
|
# F401: Unused import
|
||||||
# F811: Redifiniton
|
ignore=E265,E501,F841,F401
|
||||||
# W292: No newline at end of file
|
|
||||||
# E701: multiple statements on one line
|
|
||||||
# E702: multiple statements on one line
|
|
||||||
# E225: missing whitespace around operator
|
|
||||||
ignore=E241,E265,F401,E501,F821,F841,E222,F811,W292,E701,E702,E225
|
|
||||||
max_complexity = 12
|
max_complexity = 12
|
||||||
exclude = ez_setup.py
|
exclude = ez_setup.py
|
||||||
|
@ -331,8 +331,9 @@ class IsEnumTests(unittest.TestCase):
|
|||||||
|
|
||||||
def test_class(self):
|
def test_class(self):
|
||||||
"""Test is_enum with a non-enum class."""
|
"""Test is_enum with a non-enum class."""
|
||||||
# pylint: disable=multiple-statements,missing-docstring
|
class Test:
|
||||||
class Test: pass
|
"""Test class for is_enum"""
|
||||||
|
pass
|
||||||
self.assertFalse(utils.is_enum(Test))
|
self.assertFalse(utils.is_enum(Test))
|
||||||
|
|
||||||
def test_object(self):
|
def test_object(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user