-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathtox.ini
More file actions
40 lines (36 loc) · 1.12 KB
/
tox.ini
File metadata and controls
40 lines (36 loc) · 1.12 KB
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
[tox]
envlist = py{310,311,312,313,314}
minversion = 3.2
tox_pip_extensions_ext_venv_update = true
skip_missing_interpreters = true
[testenv]
extras =
server
ec2spotmanager
taskmanager
test
usedevelop = true
commands = pytest -v --cov="{toxinidir}" --cov-report term-missing --cov-report xml {posargs}
install_command = python -m pip install -c "{toxinidir}/requirements.txt" {opts} {packages}
passenv =
TOXENV
CI
[testenv:py{312,313,314}]
extras =
test
[testenv:mypy]
commands =
mypy --install-types --non-interactive {posargs}
deps =
mypy==v1.20.1
usedevelop = true
[testenv:update-reqs]
skip_install = true
basepython = python3.10
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 ec2spotmanager --extra sentry --extra server --extra taskmanager --extra test --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()))"