Commit fc23995e authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

ignore E722

parent 8b0d510a
Pipeline #158 passed with stages
in 25 seconds
...@@ -8,7 +8,7 @@ class TestCodeFormat(unittest.TestCase): ...@@ -8,7 +8,7 @@ class TestCodeFormat(unittest.TestCase):
def test_codestyle_conformance(self): def test_codestyle_conformance(self):
"""Test that we conform to PEP-8.""" """Test that we conform to PEP-8."""
style = pycodestyle.StyleGuide( style = pycodestyle.StyleGuide(
quiet=True, ignore=["E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504", "E501"]) quiet=True, ignore=["E121", "E123", "E126", "E226", "E24", "E704", "W503", "W504", "E501", "E722"])
result = style.check_files(glob.glob("./**/*.py")) result = style.check_files(glob.glob("./**/*.py"))
print("================ pycodestyle statistics ================") print("================ pycodestyle statistics ================")
if result.total_errors == 0: if result.total_errors == 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment