aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2022-12-09 21:23:59 +0100
committerDaniel Schadt <kingdread@gmx.de>2022-12-09 21:23:59 +0100
commit0130f540ffefac371910a05cf52f30ac3bf06b5b (patch)
tree603896b7944415c3fe01d39ea1fdd8eba8c2dd69
parent5ab50deb4c784e8c07e8600a4a95aafb3b146f75 (diff)
downloadfietsboek-0130f540ffefac371910a05cf52f30ac3bf06b5b.tar.gz
fietsboek-0130f540ffefac371910a05cf52f30ac3bf06b5b.tar.bz2
fietsboek-0130f540ffefac371910a05cf52f30ac3bf06b5b.zip
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.
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--tox.ini4
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-