cookiecutter

Форк
0
/
tox.ini 
51 строка · 1.3 Кб
1
[tox]
2
envlist =
3
    lint
4
    py{312, 311, 310, 39, 38, 37}
5
    safety
6
    docs
7

8
skip_missing_interpreters = True
9
isolated_build = True
10

11

12
[testenv:lint]
13
description = Run pre-commit hooks
14
deps = pre-commit
15
commands = pre-commit run --all --all-files
16

17

18
[testenv]
19
description = Run the test suite ({basepython})
20
package = wheel
21
wheel_build_env = build_wheel
22
depends =
23
    # The test suite currently cannot run in parallel due to I/O conflicts.
24
    # To allow tox to run other test environments (like 'docs') in parallel,
25
    # sequential dependencies are listed here for the test suite.
26
    py37: py38
27
    py38: py39
28
    py39: py310
29
    py310: py311
30
    py311: py312
31
    py312: lint
32
deps = -rtest_requirements.txt
33
commands = pytest --color=yes --cov-report=html --cov-report=xml --cov-branch --cov-fail-under=100 {posargs}
34

35

36
[testenv:safety]
37
description = Check with safety
38
deps = safety==2.3.5
39
commands = safety --disable-telemetry check --full-report
40

41

42
[testenv:docs]
43
description = Build the documentation
44
deps = -rdocs/requirements.txt
45
commands = sphinx-build -Wab html docs/ docs/_build/html
46

47

48
[testenv:servedocs]
49
description = Host the docs locally and rebuild on changes
50
deps = -rdocs/requirements.txt
51
commands = sphinx-autobuild -Wa docs/ docs/_build/html --open-browser --port 9812 --watch *.md --watch *.rst --watch *.py --watch cookiecutter
52

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.