-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
54 lines (48 loc) · 933 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
44
45
46
47
48
49
50
51
52
53
54
[tox]
envlist = begin,py{36,37,38,39,310,311}-{json,json5},end,black,flake8
skip_missing_interpreters = True
skipsdist = True
[testenv]
changedir = {toxinidir}
skip_install = True
passenv =
GITHUB_ACTIONS
HAB_TEST_UNCACHED_ONLY
deps =
-rrequirements.txt
covdefaults
coverage
pytest
json5: pyjson5
commands =
coverage run -m pytest {tty:--color=yes} {posargs:tests/}
[testenv:begin]
basepython = python3
deps =
-rrequirements.txt
coverage[toml]
commands =
# Ensure the version.py file is created
python setup.py egg_info
coverage erase
[testenv:end]
basepython = python3
deps =
coverage
commands =
coverage combine
coverage report
[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 .