summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorHugo van Kemenade <hugovk@users.noreply.github.com>2019-11-10 21:09:18 +0200
committerGitHub <noreply@github.com>2019-11-10 21:09:18 +0200
commitb539e9669719d2a9d10a9cef614ffaf67f723086 (patch)
treefe3d2597f821ddc8adac5347d040506df1cefea3 /tox.ini
parent626a06274750669b12f794c6800c1abcfd48a0a6 (diff)
downloadtablib-b539e9669719d2a9d10a9cef614ffaf67f723086.tar.gz
Update testing: add docs + lint jobs; use pre-commit for linting (#426)
* Move docs and lint to their own [3.8] build job for more parallelism * No codecov for docs or lint * Move isort into pre-commit * Add some handy linters to pre-commit * Add rst-backticks linter and fix the errors * Add pyupgrade and add upgrades * Test docs and lint on GitHub Actions * Xenial is default
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 8 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index 78fd079..059f335 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,15 +2,11 @@
usedevelop = true
minversion = 2.4
envlist =
- py{35,36,37,38}-tests,
- py37-{docs,lint}
+ docs
+ lint
+ py{35,36,37,38}
[testenv]
-basepython =
- py35: python3.5
- py36: python3.6
- py37: python3.7
- py38: python3.8
deps =
tests: -rtests/requirements.txt
docs: sphinx
@@ -19,20 +15,20 @@ commands =
tests: pytest {posargs:tests}
docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
-[testenv:py37-lint]
-basepython = python3.7
+[testenv:lint]
deps =
+ check-manifest
flake8
# flake8-black
- isort
+ pre-commit
twine
- check-manifest
commands =
# flake8 src/tablib tests/
- isort --check-only --diff
+ pre-commit run --all-files
check-manifest -v
python setup.py sdist
twine check dist/*
+skip_install = true
[flake8]
exclude =