-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
45 lines (39 loc) · 910 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
[tox]
env_list=dev
no_package=True
[testenv:dev]
description: Prepare development environment
deps =
-r requirements.txt
-r requirements_test.txt
-r requirements_docs.txt
[testenv:test]
description: Run linters and tests
deps =
-r requirements.txt
-r requirements_test.txt
commands =
black --check app/
flake8 --count --statistics app/
isort --check-only app/
mypy --ignore-missing-imports app/
pytest -v --cov --cov-report term-missing {posargs}
yamllint --format colored --strict .
[testenv:docs]
description = Generate the docs site (use in CI)
deps =
-r requirements_docs.txt
commands =
mkdocs build
# DO NOT RUN IN CI
[testenv:docs-serve]
description = Serve the docs site (don't use in CI)
deps =
-r requirements_docs.txt
commands =
mkdocs serve
[flake8]
max-line-length=88
per-file-ignores=app/tests/*.py:E501,D103
[isort]
profile=black