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
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
mode of operation is discouraged, since dependencies might be missing.

View file

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

View file

@ -19,7 +19,7 @@ def runTests() {
checkout scm
}
stage ('Install lib') {
sh "pip install --user -e .[css,test]"
sh "pip install --user -e .[css,dev]"
}
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"

View file

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