-
-
Notifications
You must be signed in to change notification settings - Fork 84
/
tox.ini
45 lines (39 loc) · 1.12 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
[tox]
isolated_build = True
envlist = fmt, lint, py{3.10,3.11,3.12}-django{32,40,41,42,50}
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv]
passenv = CASS_HOST
commands = poetry run {toxinidir}/testproject/runtests.py
deps =
coverage
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
djangomaster: https://github.com/django/django/archive/main.tar.gz
djangorestframework
freezegun==0.3.6
mock
poetry
[testenv:fmt]
description = Python source code formatting (isort, black)
deps =
poetry
isort
black
commands =
poetry run isort --check-only django_cassandra_engine
poetry run black --check django_cassandra_engine
[testenv:lint]
description = Python source code linting (flake8, bandit, pydocstyle)
deps =
poetry
flake8
commands =
poetry run flake8 django_cassandra_engine -vvv