generated from febus982/bootstrap-python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (34 loc) · 806 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
[tox]
min_version = 4.0
env_list =
py312
py311
py310
py39
typing
lint
format
[testenv]
; The file /tmp/requirements.txt is created automatically if you run tox
; using `make check` command, otherwise manually run
; `poetry export -f requirements.txt --output /tmp/requirements.txt --with dev`
; Poetry is really bad in identifying running virtualenvs, so we can't use
; directly poetry install. This is the best hacky way to install poetry
; requirements inside tox.
deps =
-r/tmp/requirements.txt
commands =
pytest
[testenv:py312]
; Run with coverage in one python version to check coverage percentage
commands =
pytest --cov
[testenv:typing]
commands =
mypy
[testenv:format]
commands =
ruff format --check .
[testenv:lint]
commands =
ruff check .