Skip to content
This repository has been archived by the owner on Jul 23, 2022. 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 Oct 12, 2021
1 parent ba26e71 commit 71980ba
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions _unittests/ut_module/test_code_style.py
Expand Up @@ -2,10 +2,8 @@
@brief test log(time=0s)
"""

import sys
import os
import unittest
import warnings
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import check_pep8
from pyquickhelper.pycode.utils_tests_helper import _extended_refactoring
Expand All @@ -19,16 +17,12 @@ def test_code_style_src(self):
self._testMethodName,
OutputPrint=__name__ == "__main__")

if sys.version_info[0] == 2:
warnings.warn(
"skipping test_code_style because of Python 2 or " + sys.executable)
return

thi = os.path.abspath(os.path.dirname(__file__))
src_ = os.path.normpath(os.path.join(thi, "..", "..", "src"))
check_pep8(src_, fLOG=fLOG, extended=[("fLOG", _extended_refactoring)],
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'W0231', 'W0212', 'C0111', 'W0107', 'R1728'),
'W0231', 'W0212', 'C0111', 'W0107', 'R1728',
'C0209'),
skip=["Redefining built-in 'iter'",
"iter_rows.py:340",
"translation_class.py",
Expand All @@ -46,17 +40,12 @@ def test_code_style_test(self):
self._testMethodName,
OutputPrint=__name__ == "__main__")

if sys.version_info[0] == 2:
warnings.warn(
"skipping test_code_style because of Python 2 or " + sys.executable)
return

thi = os.path.abspath(os.path.dirname(__file__))
test = os.path.normpath(os.path.join(thi, "..", ))
check_pep8(test, fLOG=fLOG, neg_pattern="temp_.*",
pylint_ignore=('C0111', 'C0103', 'W0622', 'C1801', 'C0412',
'R0201', 'W0122', 'W0123', 'E1101', 'R1705',
'W0107', 'R1720'),
'W0107', 'R1720', 'C0209'),
skip=[],
extended=[("fLOG", _extended_refactoring)])

Expand Down

0 comments on commit 71980ba

Please sign in to comment.