forked from hypothesis/bouncer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (43 loc) · 1.28 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
[pytest]
filterwarnings =
error
; Suppress warnings about an import of `imp` by Pyramid
ignore:the imp module is deprecated in favour of importlib
[tox]
envlist = tests
skipsdist = true
requires =
tox>=3.8.0,<4
tox-faster
tox-pyenv
tox-run-command
tox_pyenv_fallback = false
[testenv]
skip_install = true
setenv =
dev: DEBUG = {env:DEBUG:yes}
dev: HYPOTHESIS_AUTHORITY = {env:HYPOTHESIS_AUTHORITY:localhost}
dev: HYPOTHESIS_URL = {env:HYPOTHESIS_URL:http://localhost:5000}
dev: VIA_BASE_URL = {env:VIA_BASE_URL:http://localhost:9083}
passenv =
HOME
dev: CHROME_EXTENSION_ID
dev: SENTRY_DSN
deps =
-r requirements/{env:TOX_ENV_NAME}.txt
whitelist_externals =
dev: gunicorn
depends =
coverage: tests
commands =
pip-sync-faster requirements/{env:TOX_ENV_NAME}.txt --pip-args '--disable-pip-version-check'
dev: {posargs:gunicorn --reload "bouncer.app:app()"}
lint: flake8 .
format: black bouncer tests
format: isort --quiet --atomic bouncer tests
checkformatting: black --check bouncer tests
checkformatting: isort --quiet --check-only bouncer tests
tests: coverage run -m pytest {posargs:tests/unit/}
functests: pytest {posargs:tests/functional/}
coverage: -coverage combine
coverage: coverage report