Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jan 8, 2021
1 parent a13f8e3 commit 004b925
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion _doc/sphinxdoc/source/conf.py
Expand Up @@ -2,13 +2,14 @@
import sys
import os
import alabaster
from pyquickhelper.helpgen.default_conf import (
set_sphinx_variables, get_default_stylesheet)


sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
local_template = os.path.join(os.path.abspath(
os.path.dirname(__file__)), "phdoc_templates")

from pyquickhelper.helpgen.default_conf import set_sphinx_variables, get_default_stylesheet
set_sphinx_variables(__file__, "wrapclib", "Xavier Dupré", 2021,
"alabaster", alabaster.get_path(),
locals(), extlinks=dict(
Expand Down
11 changes: 6 additions & 5 deletions _unittests/ut_module/test_code_style.py
Expand Up @@ -12,19 +12,20 @@ class TestCodeStyle(ExtTestCase):

def test_style_src(self):
thi = os.path.abspath(os.path.dirname(__file__))
src_ = os.path.normpath(os.path.join(thi, "..", "..", "src"))
src_ = os.path.normpath(os.path.join(thi, "..", "..", "wrapclib"))
check_pep8(src_, fLOG=fLOG,
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'W0212'),
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705',
'W0108', 'W0613', 'W0212'),
skip=["gitsrc/re2", "gitsrc\\re",
"gitsrc/benchlog", "gitsrc\\benchlog"])

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_.*",
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705', 'W0108', 'W0613',
'C0111', 'W0703'),
pylint_ignore=('C0103', 'C1801', 'R0201', 'R1705',
'W0108', 'W0613', 'C0111', 'W0703',
'C0116'),
skip=[])


Expand Down

0 comments on commit 004b925

Please sign in to comment.