From 6c71a3bea29ee023eb7acc4ad5df3e1efa63ed46 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 2 Jul 2022 20:18:26 +0300 Subject: [PATCH] Disable core linting with Python 3.6 --- .github/workflows/core.yml | 1 + .pylintrc | 4 +++- Makefile | 4 ++-- tox.ini | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index df920e4e..e566e02c 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -33,6 +33,7 @@ jobs: pip install tox - name: Python Lint + if: ${{ matrix.python-version != '3.6' }} run: | tox -e lint diff --git a/.pylintrc b/.pylintrc index 4236ced1..0b9ff1f8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -4,6 +4,8 @@ output-format=colorized [MESSAGES CONTROL] disable= missing-docstring, + duplicate-code, invalid-name, too-few-public-methods, - consider-using-f-string + consider-using-f-string, + cyclic-import diff --git a/Makefile b/Makefile index 8b280334..09c0b838 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ lint: - pylint -j 6 --rcfile=./.pylintrc ./tests - pylint -j 6 --rcfile=./.pylintrc ./platformio + pylint --rcfile=./.pylintrc ./tests + pylint --rcfile=./.pylintrc ./platformio isort: isort ./platformio diff --git a/tox.ini b/tox.ini index 92555cf5..8332f8d3 100644 --- a/tox.ini +++ b/tox.ini @@ -41,7 +41,8 @@ commands = [testenv:lint] commands = {envpython} --version - pylint --rcfile=./.pylintrc ./platformio ./tests + pylint --rcfile=./.pylintrc ./platformio + pylint --rcfile=./.pylintrc ./tests [testenv:testcore] commands = @@ -54,7 +55,6 @@ commands = py.test -v --basetemp="{envtmpdir}" tests/test_examples.py [testenv:docs] -; basepython = ~/.pyenv/versions/3.6.12/bin/python deps = sphinx sphinx_rtd_theme