-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathtox.ini
45 lines (39 loc) · 813 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
[tox]
isolated_build = true
skip_missing_interpreters = true
envlist =
py{39,310,311,312,313}
pypy{39,310}
[testenv]
package = wheel
wheel_build_env = .pkg
deps =
pytest>=8.0
pytest-cov>=5.0
commands = py.test {posargs}
[testenv:coverage]
basepython = python3.9
commands = py.test --cov=currency_converter --cov-context=test --cov-report html {posargs}
[testenv:ruff]
basepython = python3.9
deps = ruff
commands = ruff check .
[testenv:ruff-format]
basepython = python3.9
deps = ruff
commands = ruff format . --line-length 88
[testenv:black]
basepython = python3.9
deps = black
commands = black .
[testenv:packages]
allowlist_externals =
rm
basepython = python3.9
deps =
build
twine
commands =
rm -rf build *.egg-info
python -m build -s -w -o dist
twine check dist/*