-
Notifications
You must be signed in to change notification settings - Fork 48
/
tox.ini
69 lines (63 loc) · 1.47 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
64
65
66
67
68
69
[tox]
envlist = py{38,39,310,311,312}
minversion = 3.2
tox_pip_extensions_ext_venv_update = true
skip_missing_interpreters = true
[testenv]
extras =
server
taskmanager
test
usedevelop = true
commands = pytest -v --cov="{toxinidir}" --cov-report term-missing {posargs}
install_command = python -m pip install -c "{toxinidir}/requirements.txt" {opts} {packages}
passenv =
TOXENV
CI
TRAVIS
TRAVIS_*
CODECOV_*
TWINE_*
[testenv:py312]
extras =
test
[testenv:update-reqs]
skip_install = true
basepython = python3.8
deps =
pip-tools
install_command = python -m pip install {opts} {packages}
commands =
python -c "from pathlib import Path; p=Path('requirements.txt'); p.unlink(missing_ok=True)"
pip-compile --extra docker --extra server --extra test --extra taskmanager --strip-extras -q
python -c "from pathlib import Path; import re; p=Path('requirements.txt'); p.write_text(re.sub('(?m)^(fuzzing-decision)', '\# \\\\1', p.read_text()))"
[testenv:codecov]
skip_install = true
deps =
coverage[toml]
commands =
codecov
allowlist_externals =
codecov
[testenv:pypi]
skip_install = true
deps =
twine
setuptools>=43
setuptools_scm[toml]>=3.4
wheel
commands =
python setup.py sdist bdist_wheel
bash repack_wheel.sh
twine upload --skip-existing dist/*
allowlist_externals =
bash
[flake8]
# E203, W503, and W504 are all black compat
ignore =
E203
W503
enable =
W504
max-line-length = 88
show-source = true