-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (49 loc) · 977 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
49
50
51
52
53
54
55
[tox]
# Build in an environment which respects PEP 518
isolated_build = true
envlist =
lint,
test,
[testenv:lint]
skipsdist = true
skip_install = true
deps =
ruff==0.8.0
commands =
ruff check {posargs:.}
ruff format --check {posargs:.}
[testenv:test]
extras = test
commands =
pytest --cov-report=html --cov-branch --cov=isic_metadata {posargs} tests
[testenv:type]
skipsdist = true
skip_install = true
deps =
mypy
commands =
mypy {posargs:.}
[testenv:format]
skipsdist = true
skip_install = true
deps =
ruff
commands =
ruff check --fix-only {posargs:.}
ruff format {posargs:.}
[testenv:release]
skipsdist = true
skip_install = true
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_NON_INTERACTIVE
deps =
build
twine
commands =
pyproject-build --sdist --wheel --outdir {envtmpdir}
twine check {envtmpdir}/*
twine upload --skip-existing {envtmpdir}/*
[pytest]
addopts = --strict-markers --showlocals