From 0130f540ffefac371910a05cf52f30ac3bf06b5b Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 9 Dec 2022 21:23:59 +0100 Subject: work around tox bug regarding section flake8 See https://github.com/tox-dev/tox/issues/2636 - without the rename, tox fails to recognize the configuration for flake8, as there is a (non-testenv) section named the same. --- .gitlab-ci.yml | 2 +- tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c1dc16..9cd9587 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ test-pypy: lint: script: - - tox -e pylint,pylint-tests,flake8,black + - tox -e pylint,pylint-tests,flake,black mypy: script: diff --git a/tox.ini b/tox.ini index 3c39ed3..4080616 100644 --- a/tox.ini +++ b/tox.ini @@ -6,7 +6,7 @@ per-file-ignores = fietsboek/models/__init__.py:F401 [tox] -envlist = python,pylint,pylint-tests,flake8,mypy,black +envlist = python,pylint,pylint-tests,flake,mypy,black # This can be removed in tox 4 as it will be the default: isolated_build = true @@ -33,7 +33,7 @@ commands_pre = commands = bash -c "pylint --rcfile=pylint.tests.toml tests/**/*.py" -[testenv:flake8] +[testenv:flake] # This is a bit of a hack since flake8 specifies Python 3.8 as minimum required # version, while fietsboek only specifices 3.7. Thus, we manually install # flake8 via pip and bypass poetry's locking- -- cgit v1.2.3