-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (48 loc) · 905 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[tox]
envlist = lint, type, test
[testenv]
deps =
# Common dependencies
flake8<6
[testenv:lint]
skipsdist = true
skip_install = true
basepython = python3
deps =
{[testenv]deps}
flake8-black
flake8-quotes
flake8-bugbear
commands =
flake8 --extend-exclude=migrations setup.py src/alttxt
[testenv:type]
# we need dependencies to be installed
skipsdist = true
skip_install = true
usedevelop = true
deps =
{[testenv]deps}
mypy
django-stubs
djangorestframework-stubs
commands =
mypy setup.py src/alttxt
setenv =
DJANGO_CONFIGURATION = TestingConfiguration
[testenv:test]
deps =
{[testenv]deps}
pytest
pytest-cov
commands =
pytest {posargs}
[testenv:format]
skipsdist = true
skip_install = true
basepython = python3
deps =
{[testenv]deps}
black
commands =
# Run Black to format the code
black {posargs} setup.py src/alttxt