-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
48 lines (42 loc) · 902 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
48
[tox]
isolated_build = True
envlist = py310, py311, py312, py313, lint, type
requires =
tox>=4.2
poetry>=1.4.0
[testenv]
skip_install = False
allowlist_externals = poetry
passenv = RPC_TOKEN # Include RPC_TOKEN in the test environment
commands_pre =
poetry install --no-root --sync
commands =
poetry run pytest tests/ {posargs}
[testenv:lint]
description = Run linting checks
commands =
poetry run black . --check
poetry run ruff check .
poetry run bandit -r dria/
[testenv:type]
description = Run type checks
commands =
poetry run mypy dria/
[pytest]
asyncio_mode = auto
testpaths = tests
python_files = test_*.py
addopts = -v --tb=short
[coverage:run]
source = dria
omit =
tests/*
.tox/*
*/site-packages/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
pass