34 lines
568 B
INI
34 lines
568 B
INI
[tox]
|
|
requires =
|
|
tox>=4.2
|
|
env_list =
|
|
lint
|
|
py{py3, 312, 311, 310, 39, 38}
|
|
|
|
[testenv]
|
|
extras =
|
|
tests
|
|
pass_env =
|
|
FORCE_COLOR
|
|
PYLAST_API_KEY
|
|
PYLAST_API_SECRET
|
|
PYLAST_PASSWORD_HASH
|
|
PYLAST_USERNAME
|
|
commands =
|
|
pytest -v -s -W all --cov pylast --cov tests --cov-report term-missing --cov-report xml --random-order {posargs}
|
|
|
|
[testenv:lint]
|
|
skip_install = true
|
|
deps =
|
|
pre-commit
|
|
pass_env =
|
|
PRE_COMMIT_COLOR
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:venv]
|
|
deps =
|
|
ipdb
|
|
commands =
|
|
{posargs}
|