-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
30 lines (28 loc) · 660 Bytes
/
tox.ini
File metadata and controls
30 lines (28 loc) · 660 Bytes
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
[tox]
envlist =
lint
py{310,311,312,313,314}-django{42,51,52}
[testenv]
passenv =
ELASTICSEARCH6_HOST
; ELASTICSEARCH8_HOST
setenv =
DJANGO_SETTINGS_MODULE={env:DJANGO_SETTINGS_MODULE:elasticsearch_metrics.tests.settings}
extras =
elastic6
; elastic8
dependency_groups =
tests
deps =
django42: Django>=4.2,<5.0
django51: Django>=5.1,<5.2
django52: Django>=5.2,<6.0
commands =
poetry run python3 -m elasticsearch_metrics.tests {posargs}
allowlist_externals =
poetry
; NOTE: pre-commit runs both black and flake8
[testenv:lint]
skip_install = true
deps = pre-commit~=2.17
commands = pre-commit run --all-files