-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
47 lines (42 loc) · 865 Bytes
/
tox.ini
File metadata and controls
47 lines (42 loc) · 865 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[tox]
requires =
tox==4.17.0
env_list =
type
lint
security
install
py310
[testenv:py310]
description = run tests with Python 3.10
basepython = python3.10
deps =
-r requirements.txt
commands =
pytest --cov-config=.coveragerc --cov=api/v1 --cov-report=html:htmlcov --cov-report=term-missing --cov-fail-under=90 tests/
[testenv:type]
description = run type checks
deps =
mypy==1.10.0
commands =
mypy {posargs:api}
[testenv:lint]
description = run lint checks and formatting
deps =
ruff==0.4.5
commands =
ruff check --exclude alembic/* --select I --fix
ruff format
[testenv:security]
description = run security checks
deps =
bandit==1.7.4
commands =
bandit -r api
[testenv:install]
description = check if package installs correctly
skip_install = true
deps =
.
commands =
pip install --no-deps .