forked from opensourceways/infraAIService
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (38 loc) · 757 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
[tox]
envlist = py38, py39, py310, py311, lint, coverage
[testenv]
deps =
pytest
pytest-cov
requests
mock
pytest_asyncio
asyncpg
fastapi
qdrant_client
fastembed
commands =
pytest tests/ --cov=infra_ai_service --cov-report=term-missing
[testenv:lint]
deps =
flake8
black
isort
commands =
flake8 infra_ai_service/ tests/
black --check infra_ai_service/ tests/
isort --check-only infra_ai_service/ tests/
[testenv:coverage]
deps =
coverage
commands =
coverage report --fail-under=0
coverage html
[testenv:format]
description = "Auto-format the code using black and isort"
deps =
black
isort
commands =
black infra_ai_service/ tests/
isort infra_ai_service/ tests/