forked from cloud-gov/django-uaa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
57 lines (53 loc) · 1.33 KB
/
pyproject.toml
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
[build-system]
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0"]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 88
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.?venv
| _build
| buck-out
| build
| dist
)/
)
'''
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py35-django22,py3{6,7,8,9,10}-django{22,30,31,32}
isolated_build=true
[testenv:py3{5,6,7}]
deps =
-rrequirements-tests.txt
-rrequirements-dev.txt
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
commands =
# don't run mypy on versions lower than 3.8 because there's a bug that was fixed in
# https://github.com/python/typeshed/pull/1142 but only fixes 3.8+ versions
# this also skips linting and coverage checks on earlier versions, but those should be the same
python -m uaa_client.runtests
[testenv:py3{8,9,10}]
deps =
-rrequirements-tests.txt
-rrequirements-dev.txt
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
commands =
python -m uaa_client.runtests
python -m mypy uaa_client
"""