-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
34 lines (30 loc) · 1.04 KB
/
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
[flake8]
max-line-length = 120
exclude = .venv,.tox,dist,doc,build,*.egg
[tox]
envlist = fix_lint,docs,static_tests
skip_missing_interpreters = true
skipsdist=True
[testenv:fix_lint]
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
passenv = HOMEPATH
# without PROGRAMDATA cloning using git for Windows will fail with an
# `error setting certificate verify locations` error
PROGRAMDATA
extras = lint
deps =
pre-commit == 1.17.0
skip_install = True
commands = pre-commit run --all-files --show-diff-on-failure
python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
[testenv:static_tests]
deps= -r{toxinidir}/requirements.txt
commands=
molecule lint
molecule dependency
molecule syntax
[testenv:docs]
changedir=docs
deps= -r{toxinidir}/requirementsDocs.txt
commands=
sphinx-build -b html -d {envtmpdir}/minecraft-server/doctrees . {envtmpdir}/html