mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-17 04:53:42 +00:00
lint fix
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = cppcheck, flake8, pylint, mypy, vulture, htmlhint
|
envlist = cppcheck-src, cppcheck-python, flake8, pylint, mypy, vulture, htmlhint
|
||||||
skipsdist = true
|
skipsdist = true
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3.9
|
basepython = python3.9
|
||||||
changedir = /src
|
changedir = /src
|
||||||
|
|
||||||
[testenv:cppcheck]
|
[testenv:cppcheck-src]
|
||||||
whitelist_externals = cppcheck
|
whitelist_externals = cppcheck
|
||||||
commands = cppcheck \
|
commands = cppcheck \
|
||||||
--force \
|
--force \
|
||||||
@@ -17,10 +17,26 @@ commands = cppcheck \
|
|||||||
--suppress=assignmentInAssert \
|
--suppress=assignmentInAssert \
|
||||||
--suppress=variableScope \
|
--suppress=variableScope \
|
||||||
--inline-suppr \
|
--inline-suppr \
|
||||||
|
--library=python \
|
||||||
-DCHAR_BIT=8 \
|
-DCHAR_BIT=8 \
|
||||||
-DWITH_OMX \
|
-DWITH_OMX \
|
||||||
-DWITH_GPIO \
|
-DWITH_GPIO \
|
||||||
src
|
src python
|
||||||
|
|
||||||
|
[testenv:cppcheck-python]
|
||||||
|
whitelist_externals = cppcheck
|
||||||
|
commands = cppcheck \
|
||||||
|
--force \
|
||||||
|
--std=c11 \
|
||||||
|
--error-exitcode=1 \
|
||||||
|
--quiet \
|
||||||
|
--enable=warning,unusedFunction,portability,performance,style \
|
||||||
|
--suppress=assignmentInAssert \
|
||||||
|
--suppress=variableScope \
|
||||||
|
--inline-suppr \
|
||||||
|
--library=python \
|
||||||
|
-DCHAR_BIT=8 \
|
||||||
|
python
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
|
|||||||
Reference in New Issue
Block a user