-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
51 lines (42 loc) · 1.35 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
[tox]
envlist = py38, py39, py310, py311, py312, docs-localbuild
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv =
HOME
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
SKIP_NETWORK_TESTS
deps = -r requirements/test.txt
# Installing with deps can downgrade packages specified in requirements/test.txt causing us
# to not fail in `pip check` below. We do however want the requirements file installed
# with deps, because then any new dependencies will fail to install due to hashing being missing.
skip_install = True
commands =
pip install -e . --no-deps # see note on skip_install above
pip check
py.test --cov mozilla_version --cov-report term-missing
coverage html
flake8
# TODO: Remove this redefinition once
# https://github.com/pytest-dev/pytest-cov/issues/564 is fixed
[testenv:py311]
commands =
pip install -e . --no-deps # see note on skip_install above
pip check
py.test
flake8
[testenv:docs-localbuild]
deps = -r requirements/docs.txt
commands =
pip check
sphinx-build -T -b readthedocs -d _build/doctrees-readthedocs -D language=en docs _build/html
[flake8]
max-line-length = 99
exclude = .ropeproject,.tox,sandbox,docs,.eggs,*.egg,*.egg-info,setup.py,build/,mozilla_version/__init__.py,mozilla_version/test/
show-source = True
[pytest]
norecursedirs = .tox .git .hg sandbox
python_files = test_*.py