This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
81 lines (70 loc) · 1.41 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
[tox]
isolated_build = True
skipsdist = True
envlist =
pylint
black
docs
isort
release
py{38,39}-django{22,30,31,djangomaster}
[testenv]
commands =
pytest --cov --cov-report=xml
deps =
pytest
pytest-clarity
pytest-cov
pytest-django
factory-boy
django22: Django>=2.2<3.0
django30: Django>=3.0<3.1
django31: Django>=3.1<3.2
djangomaster: https://github.com/django/django/archive/master.tar.gz#egg=django
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
[testenv:black]
deps = black
commands = black --exclude '.*(migrations)' --check --diff django_google_optimize tests
[testenv:isort]
deps = isort
commands = isort --check-only --diff .
[testenv:pylint]
deps =
django
pylint
pylint-django
factory-boy
pytest
commands = pylint django_google_optimize tests --django-settings-module=tests.settings
[testenv:mypy]
basepython = python3
skip_install = true
deps =
mypy
django-stubs
commands = mypy .
[testenv:docs]
deps = mkdocs
commands = mkdocs build
[testenv:release]
deps =
poetry
commands =
poetry publish --build
passenv =
POETRY_PYPI_TOKEN_PYPI
[pytest]
addopts = --ds=tests.settings --reuse-db -ra
DJANGO_SETTINGS_MODULE = tests.settings
testpaths = tests
[coverage:run]
branch = True
source = django_google_optimize
omit =
./.venv/*
*/migrations/*
*/apps.py
*/admin.py
[coverage:report]
fail_under = 95