-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
27 lines (26 loc) · 957 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
[tox]
isolated_build = True
toxworkdir={env:TOX_WORK_DIR:.tox}
envlist = py{310,311,312}-django{420,500}
[testenv]
allowlist_externals =
bash
deps =
django420: django>=4.2,<4.3
django500: django>=5.0,<5.1
setenv =
PYTHONWARNINGS = d
# Install the dependencies managed by Poetry, except for Django (which was
# already installed by tox). This prevents Poetry from overwriting the version
# of Django we're trying to test with the version in the lock file.
# Adapted from here: https://github.com/python-poetry/poetry/discussions/4307
commands_pre =
bash -c 'poetry export --with dev --without-hashes -f requirements.txt | \
grep -v "^[dD]jango==" | \
pip install --no-deps -r /dev/stdin'
commands =
flake8 src sandbox
- mypy src/asymmetric_jwt_auth
coverage erase
coverage run --branch --source asymmetric_jwt_auth {toxinidir}/sandbox/manage.py test --noinput asymmetric_jwt_auth
- coverage report -m