-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 loc) · 908 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
[tox]
envlist = py311, linting
skipsdist = True
[testenv]
skip_install = True
deps =
-rrequirements.txt
-rtest_requirements.txt
coverage
pytest
[testenv:py311]
docker =
elasticsearch
commands =
coverage run -m --source=./rac_es pytest -s
coverage report -m
[testenv:linting]
basepython = python3
deps = pre-commit
commands =
pre-commit run --all-files
[flake8]
application-import-names = flake8
select = B, C, E, F, W, B950
import-order-style = pep8
max-complexity = 10
ignore =
# Line too long (82 > 79 characters).
E501,
# Blank line at end of file
W391,
[docker:elasticsearch]
image = docker.elastic.co/elasticsearch/elasticsearch:7.9.3
ports =
9200:9200/tcp
environment =
discovery.type=single-node
healthcheck_cmd = curl --silent --fail localhost:9200/_cluster/health
healthcheck_interval = 1
healthcheck_timeout = 1
healthcheck_retries = 100
healthcheck_start_period = 5