Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Update test_code_style.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 2, 2019
1 parent 870adb5 commit 06a398c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions _unittests/ut_module/test_code_style.py
Expand Up @@ -22,6 +22,11 @@
import src


def _run_cmd_filter(name):
print("#", name)
return False


class TestCodeStyle(ExtTestCase):
"""Test style."""

Expand All @@ -32,7 +37,7 @@ def test_src(self):
def test_style_src(self):
thi = os.path.abspath(os.path.dirname(__file__))
src_ = os.path.normpath(os.path.join(thi, "..", "..", "src"))
check_pep8(src_, fLOG=fLOG,
check_pep8(src_, fLOG=fLOG, run_cmd_filter=_run_cmd_filter,
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'R0911', 'W0201', 'W070', 'W0622', 'R1702',
'C0111', 'W0703', 'C0200'),
Expand Down Expand Up @@ -64,7 +69,7 @@ def test_style_src(self):
def test_style_test(self):
thi = os.path.abspath(os.path.dirname(__file__))
test = os.path.normpath(os.path.join(thi, "..", ))
check_pep8(test, fLOG=fLOG, neg_pattern="temp_.*",
check_pep8(test, fLOG=fLOG, neg_pattern="temp_.*", run_cmd_filter=_run_cmd_filter,
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'C0111', 'W0703', 'C0122', 'W0101', 'R1707'),
skip=["src' imported but unused",
Expand Down

0 comments on commit 06a398c

Please sign in to comment.