-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (50 loc) · 1013 Bytes
/
tox.ini
File metadata and controls
58 lines (50 loc) · 1013 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
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = py310,py311,py312,py313,py314,lint,debug
isolated_build = true # Ensures it uses pyproject.toml for builds
[testenv]
description = Run tests
deps =
pytest
requests_mock
ipdb
pdbpp
setenv =
CRADL_CLIENT_ID = test
CRADL_CLIENT_SECRET = test
CRADL_AUTH_ENDPOINT = test
CRADL_API_ENDPOINT = http://127.0.0.1:4010
commands =
pytest
[testenv:debug]
description = Run tests with debug output
deps =
{[testenv]deps}
commands =
pytest -sx {posargs}
[testenv:lint]
description = Run linters
deps =
flake8
mypy
commands =
flake8 --config=tox.ini src tests
mypy --config-file=tox.ini src tests
[testenv:publish]
description = Build and publish the package
deps =
build
twine
commands =
python -m build
twine upload dist/*
[flake8]
exclude = venv* .tox .env .eggs
max-line-length = 120
[mypy]
ignore_missing_imports = true
[pytest]
addopts = -s
markers =
integration: requires access to API
[isort]
multi_line_output = 3