-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
42 lines (34 loc) · 931 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
[tox]
envlist = py38, py39
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
passenv =
HOME
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
SKIP_NETWORK_TESTS
deps = -rrequirements/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 mozapkpublisher --cov-report term-missing
coverage html
flake8
[testenv:coveralls]
deps = -rrequirements/coveralls.txt
commands=
pip check
coveralls
[flake8]
max-line-length = 160
exclude = .ropeproject,.tox,sandbox
show-source = True
[pytest]
norecursedirs = .tox .git .hg sandbox
python_files = test_*.py