-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
112 lines (99 loc) · 2.73 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[tox]
envlist = py{27,35,36,37,38}
minversion = 3.2
tox_pip_extensions_ext_venv_update = true
skip_missing_interpreters = true
[testenv]
extras = test
usedevelop = true
commands = pytest --flake8 -v --cov="{toxinidir}" --cov-report term-missing --basetemp="{envtmpdir}" {posargs}
passenv =
TOXENV
CI
TRAVIS
TRAVIS_*
CODECOV_*
TWINE_*
deps =
-r{toxinidir}/server/requirements.txt
git+https://github.com/MozillaSecurity/fuzzing-tc#egg=fuzzing-tc; python_version >= '3.6'
[testenv:codecov]
deps =
codecov
commands =
codecov -X gcov
[testenv:pypi]
deps =
twine
commands =
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
# test with frozen requirements for Django 3.x
[testenv:py36-3.0]
basepython = python3.6
deps =
-r{toxinidir}/server/requirements3.0.txt
git+https://github.com/MozillaSecurity/fuzzing-tc#egg=fuzzing-tc
[testenv:py37-3.0]
basepython = python3.7
deps =
-r{toxinidir}/server/requirements3.0.txt
git+https://github.com/MozillaSecurity/fuzzing-tc#egg=fuzzing-tc
[testenv:py38-3.0]
basepython = python3.8
deps =
-r{toxinidir}/server/requirements3.0.txt
git+https://github.com/MozillaSecurity/fuzzing-tc#egg=fuzzing-tc
# test with unfrozen requirements (latest for all deps)
[testenv:py27-next]
basepython = python2.7
deps =
[testenv:py35-next]
basepython = python3.5
deps =
[testenv:py36-next]
basepython = python3.6
deps =
[testenv:py37-next]
basepython = python3.7
deps =
[testenv:py38-next]
basepython = python3.8
deps =
[flake8]
# This ignore section is for running flake8 standalone vs through pytest
ignore =
# block comment should start with '# '
E265
# For now we use line break after binary operators,
# once we switch we need to change this to W503.
W504
W605
exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
# This contains our built documentation
build/*,
# This contains builds of flake8 that we don't want to check
dist/*,
max-line-length = 120
show-source = true
statistics = true
[pytest]
DJANGO_SETTINGS_MODULE=server.settings_test
python_paths=. server
flake8-ignore =
# block comment should start with '# '
E265
# For now we use line break after binary operators,
# once we switch we need to change this to W503.
W504
W605
addopts = --flake8 -v --cov=. --cov-report term-missing
filterwarnings =
ignore:"@coroutine" decorator:DeprecationWarning:aiohttp
ignore:You passed a bytestring:DeprecationWarning:flake8.options.config
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:celery.canvas
ignore:Using or importing the ABCs from 'collections':DeprecationWarning:yaml