forked from sunscrapers/djoser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (30 loc) · 765 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
[tox]
isolated_build = true
envlist =
py3{6,7,8}-django22-drf{311,312},
py3{8,9}-django31-drf{311,312}
[testenv]
whitelist_externals = poetry
passenv = HOME CI TRAVIS TRAVIS_*
deps =
django22: django>=2.2,<2.3
django31: Django>=3.1,<3.2
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
extras =
test
commands =
django-admin --version
py.test --capture=no --cov-report term-missing --cov-report html --cov=djoser testproject/
[testenv:upload_coverage]
deps =
coverage
codacy-coverage
passenv = CODACY_PROJECT_TOKEN
commands =
coverage xml
python-codacy-coverage -r coverage.xml
[flake8]
max-line-length = 88
exclude = .tox,.git,docs,dist,testproject/*
extend-ignore = E203, W50