forked from GreyZmeem/python-logging-loki
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtox.ini
More file actions
30 lines (28 loc) · 604 Bytes
/
tox.ini
File metadata and controls
30 lines (28 loc) · 604 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]
# List of Python versions to test against
envlist = py311,py312,ruff
isolated_build = true
[testenv]
setenv =
LC_ALL = en_US.UTF-8
LANG = en_US.UTF-8
deps =
pytest
coverage
freezegun
commands =
coverage run -m pytest []
coverage report
coverage xml
[testenv:ruff]
skip_install = true
# Use whatever python3 is available on your system
basepython = python3.11
deps = ruff
commands =
# First fix auto-fixable issues
ruff check --fix .
ruff format .
# Then check for any remaining issues
ruff check .
ruff format --check .