forked from mozilla-releng/scriptworker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
87 lines (72 loc) · 1.92 KB
/
tox.ini
File metadata and controls
87 lines (72 loc) · 1.92 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[tox]
envlist = check,mypy,py313,py313-cot
[testenv]
depends = clean
recreate = True
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv =
HOME
NO_TESTS_OVER_WIRE
NO_CREDENTIALS_TESTS
SCRIPTWORKER_GITHUB_TOKEN
TASKCLUSTER_PROXY_URL
runner = uv-venv-runner
package = editable
commands=
{posargs:coverage run --source=src/scriptworker --branch --rcfile tox.ini -m pytest tests}
[testenv:clean]
skip_install = true
commands = coverage erase
depends =
[testenv:report]
skip_install = true
commands = coverage report -m
depends = py311
parallel_show_output = true
[testenv:coveralls]
passenv =
COVERALLS_REPO_TOKEN
COVERALLS_SERVICE_NAME
commands=
coveralls --service=taskcluster
[testenv:py311-cot]
commands=
py.test -k test_verify_production_cot --random-order-bucket=none
[testenv:py312-cot]
commands=
py.test -k test_verify_production_cot --random-order-bucket=none
[testenv:py313-cot]
commands=
py.test -k test_verify_production_cot --random-order-bucket=none
[testenv:py314-cot]
commands=
py.test -k test_verify_production_cot --random-order-bucket=none
[testenv:check]
skip_install = true
commands =
black --check {toxinidir}
isort --check --df {toxinidir}
flake8 {toxinidir}
[testenv:mypy]
commands =
mypy --config {toxinidir}/mypi.ini {toxinidir}/src
[flake8]
max-line-length = 160
# test_github.py ignored because of https://gitlab.com/pycqa/flake8/issues/375
exclude = .ropeproject,.tox,sandbox,docs,.eggs,*.egg,*.egg-info,setup.py,build/,tests/test_github.py,.venv
per-file-ignores =
# Ignore documentation issues in tests
tests:*:D
show-source = True
[pytest]
norecursedirs = .tox .git .hg sandbox .eggs build
python_files = test_*.py
addopts = -vv --color=yes --random-order --durations=10
filterwarnings =
ignore
error:::scriptworker
default::DeprecationWarning:scriptworker
default::PendingDeprecationWarning:scriptworker
[coverage:run]
branch = true