-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
tox.ini
35 lines (30 loc) · 994 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py37, py38, py39, py310, flake8, pylint
skip_missing_interpreters = true
minversion = 3.0
isolated_build = true
[testenv]
description = "ProbeQuest's unit tests"
commands =
{envpython} -m unittest discover -s tests
[testenv:flake8]
description = "Check ProbeQuest's code style & quality"
deps = flake8
commands =
{envpython} -m flake8 src tests
[testenv:pylint]
description = "Check ProbeQuest for programming errors"
deps = pylint
commands =
{envpython} -m pylint --rcfile={toxinidir}/setup.cfg src tests
[gh-actions]
description = "tox configuration when running on GitHub Actions"
python =
3.7: py37, flake8, pylint
3.8: py38, flake8, pylint
3.9: py39, flake8, pylint
3.10: py310, flake8, pylint