2022-11-02 10:33:33 +01:00
|
|
|
[tox]
|
2022-11-02 10:35:06 +01:00
|
|
|
skipsdist = True
|
2023-04-14 13:48:48 +02:00
|
|
|
envlist = py3,code-style
|
2022-11-02 10:33:33 +01:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
setenv =
|
2022-11-02 10:35:06 +01:00
|
|
|
INCOMING_WEBHOOK_SECRET=noop
|
|
|
|
REDMINE_URL=noop
|
|
|
|
REDMINE_API_KEY=noop
|
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
|
|
|
2022-11-02 10:33:33 +01:00
|
|
|
deps =
|
2022-11-02 10:35:06 +01:00
|
|
|
python-redmine
|
2022-11-02 10:33:33 +01:00
|
|
|
flask
|
2022-11-02 10:35:06 +01:00
|
|
|
pytest
|
|
|
|
pytest-mock
|
2022-11-02 10:33:33 +01:00
|
|
|
commands =
|
2023-01-18 15:32:38 +01:00
|
|
|
pytest {posargs}
|
2023-04-14 13:48:48 +02:00
|
|
|
|
|
|
|
[testenv:code-style]
|
|
|
|
basepython = python3
|
2022-11-02 10:35:06 +01:00
|
|
|
skip_install = true
|
2023-04-14 13:48:48 +02:00
|
|
|
deps =
|
|
|
|
pre-commit
|
2022-11-02 10:33:33 +01:00
|
|
|
commands =
|
2023-04-14 13:48:48 +02:00
|
|
|
pre-commit run --all-files --show-diff-on-failure
|