26 lines
620 B
INI
26 lines
620 B
INI
[tox]
|
|
envlist = py311, flake8, bandit, codespell, unit, coverage
|
|
|
|
[testenv]
|
|
basepython = python3.11
|
|
deps = -r {toxinidir}/test-requirements.txt
|
|
-r {toxinidir}/requirements.txt
|
|
pass_env = app_env, app_id, api_hash, bot_token, \
|
|
storage, allowed_ids, log_level
|
|
|
|
[testenv:flake8]
|
|
commands = flake8 telegram_downloader_bot/
|
|
|
|
[testenv:bandit]
|
|
commands = bandit -r telegram_downloader_bot/
|
|
|
|
[testenv:codespell]
|
|
commands = codespell telegram_downloader_bot/
|
|
|
|
[testenv:unit]
|
|
commands = stestr run --test-path tests/
|
|
|
|
[testenv:coverage]
|
|
commands =
|
|
coverage run -m unittest discover
|
|
coverage report -m |