-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
51 lines (43 loc) · 974 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
[tox]
isolated_build = True
envlist = fmt, lint, mypy, py{3.7,3.8,3.9,3.10}-django{31,32,40,main}
[testenv]
deps =
coverage
pytest
pytest-cov
pytest-django
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django32: Django>=4.0,<4.1
djangomain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest --cov=onfido --verbose tests/
[testenv:fmt]
description = Python source code formatting (isort, black)
deps =
isort
black
commands =
isort --check-only onfido
black --check onfido
[testenv:lint]
description = Python source code linting (flake8, bandit, pydocstyle)
deps =
flake8
flake8-bandit
flake8-blind-except
flake8-docstrings
flake8-logging-format
flake8-print
commands =
flake8 onfido
[testenv:mypy]
description = Python source code type hints (mypy)
deps =
mypy
types-python-dateutil
types-requests
types-simplejson
commands =
mypy onfido