-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
63 lines (56 loc) · 1.17 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[tox]
envlist = begin,py{27,37,38,39},end,black,flake8
skip_missing_interpreters = True
skipsdist = True
[testenv]
changedir = {toxinidir}
# This env var is used to enable registry write tests by developers and the
# gitlab action runner.
passenv =
CASEMENT_TEST_WRITE_ENV
GITHUB_ACTIONS
setenv =
{py27}: PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command
skip_install = True
deps =
-rrequirements.txt
covdefaults
coverage
pytest
commands =
# Check for python 2/3 compliance
python -m compileall -f -q -x \.tox|shared-venv .
# Run unit tests
coverage run -m pytest {posargs:tests/}
[testenv:begin]
basepython = python3
deps =
coverage
setuptools
commands =
# Ensure the version.py file is created
python setup.py egg_info
coverage erase
[testenv:end]
basepython = python3
deps =
coverage
setuptools
commands =
coverage combine
coverage report
coverage xml
[testenv:black]
basepython = python3
deps =
black==22.12.0
commands =
black . --check
[testenv:flake8]
basepython = python3
deps =
flake8==5.0.4
flake8-bugbear==22.12.6
pep8-naming==0.13.3
commands =
flake8 .