-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
43 lines (38 loc) · 961 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
36
37
38
39
40
41
42
43
# Tox standardizes testing environments in python
# https://tox.wiki/
#
# Run:
# tox
[tox]
envlist = py38,black,pylint
skipsdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
# Black enforces common code formatting
# https://black.readthedocs.io/en/stable/
#
# Run:
# tox -e black
[testenv:black]
skip_install = True
commands =
black --config pyproject.toml --check --diff scripts/
# Pylint is a static code analyzer
# https://pylint.pycqa.org/en/latest/
#
# Run:
# tox -e pylint
[testenv:pylint]
skip_install = True
commands =
pylint scripts/
# Unit tests
# https://docs.python.org/3/library/unittest.html
# Run:
# tox -e unit
[testenv:unit]
commands =
python3 -m unittest discover --verbose --top-level-directory scripts --start-directory scripts/tests/unit --pattern "test_*.py"