Move flake8 plugins to development dependencies

This makes it easier for developers to run flake8 in their development
virtualenv.
This commit is contained in:
Tobias Gruetzmacher 2020-09-27 18:49:46 +02:00
parent 346b3b4abd
commit 65fa1f71e5
4 changed files with 10 additions and 11 deletions

View file

@ -102,7 +102,7 @@ To upgrade such installations, just run:
If you want to run dosage directly from the source code, you should install If you want to run dosage directly from the source code, you should install
it in "[editable]" mode, preferable in a [virtual environment]: it in "[editable]" mode, preferable in a [virtual environment]:
pip install -e .[css,bash] pip install -e .[css,bash,dev]
You can invoke Dosage directly from the source code as `./dosage`, but this You can invoke Dosage directly from the source code as `./dosage`, but this
mode of operation is discouraged, since dependencies might be missing. mode of operation is discouraged, since dependencies might be missing.

View file

@ -52,10 +52,16 @@ bash =
argcomplete argcomplete
css = css =
cssselect cssselect
test = dev =
pytest-cov pytest-cov
pytest-xdist pytest-xdist
responses responses
flake8
flake8-2020
flake8-coding
flake8-future-import
flake8-pytest
flake8-pytest-style
[bdist_wheel] [bdist_wheel]
universal = 1 universal = 1

View file

@ -19,7 +19,7 @@ def runTests() {
checkout scm checkout scm
} }
stage ('Install lib') { stage ('Install lib') {
sh "pip install --user -e .[css,test]" sh "pip install --user -e .[css,dev]"
} }
stage ('Run tests') { stage ('Run tests') {
sh "TESTALL=1 py.test -v --cov=dosagelib --cov-report xml --tb=short -n10 --junitxml=junit.xml tests/modules/check_comics.py || true" sh "TESTALL=1 py.test -v --cov=dosagelib --cov-report xml --tb=short -n10 --junitxml=junit.xml tests/modules/check_comics.py || true"

View file

@ -20,19 +20,12 @@ deps =
# Also install extra dependencies for tests. # Also install extra dependencies for tests.
extras = extras =
css css
test dev
[testenv:flake8] [testenv:flake8]
commands = commands =
- {envbindir}/flake8 --format=pylint \ - {envbindir}/flake8 --format=pylint \
--tee --output-file={toxworkdir}/flake8.log --tee --output-file={toxworkdir}/flake8.log
deps =
flake8
flake8-2020
flake8-coding
flake8-future-import
flake8-pytest
flake8-pytest-style
[flake8] [flake8]
# we aim for 79, but this suppresses warnings for now... # we aim for 79, but this suppresses warnings for now...