htmlreport: Also check "cppcheck-htmlreport" with pylint on Travis (#2326)
The error that pylint does not find HtmlFormatter in pygments.formatters is known and the common solution is to suppress this error. See https://github.com/PyCQA/pylint/issues/491
This commit is contained in:
parent
afe59531c7
commit
61286392d9
|
@ -100,9 +100,11 @@ matrix:
|
|||
- python3 -m compileall ./addons
|
||||
# run pylint
|
||||
- pylint --rcfile=pylintrc_travis addons/*.py
|
||||
- pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
|
||||
- pylint --rcfile=pylintrc_travis htmlreport/*.py
|
||||
- pylint --rcfile=pylintrc_travis --ignore=donate-cpu-server.py tools/*.py
|
||||
- python3 -m pylint --rcfile=pylintrc_travis addons/*.py
|
||||
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
|
||||
- python3 -m pylint --rcfile=pylintrc_travis htmlreport/*.py
|
||||
- python3 -m pylint --rcfile=pylintrc_travis tools/*.py
|
||||
# check python syntax by compiling some selected scripts
|
||||
|
|
|
@ -11,7 +11,7 @@ import operator
|
|||
from collections import Counter
|
||||
from pygments import highlight
|
||||
from pygments.lexers import guess_lexer, guess_lexer_for_filename
|
||||
from pygments.formatters import HtmlFormatter
|
||||
from pygments.formatters import HtmlFormatter # pylint: disable=no-name-in-module
|
||||
from pygments.util import ClassNotFound
|
||||
from xml.sax import parse as xml_parse
|
||||
from xml.sax import SAXParseException as XmlParseException
|
||||
|
|
Loading…
Reference in New Issue