forked from litestar-org/litestar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (34 loc) · 1.11 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
35
36
37
38
39
40
[tox]
isolated_build = True
envlist = py37,py38,py39,py310,lint
[testenv]
whitelist_externals = poetry
commands =
poetry install -v -E testing
poetry run pytest {posargs:.}
[testenv:all-checks]
deps = pre-commit
commands = pre-commit run --color=always {posargs:--all-files}
[testenv:lint]
deps = pre-commit
commands = pre-commit run pylint --color=always {posargs:--all-files}
[testenv:fmt]
deps = pre-commit
ignore_errors = true
commands =
pre-commit run end-of-file-fixer --color=always {posargs:--all-files}
pre-commit run trailing-whitespace --color=always {posargs:--all-files}
pre-commit run black --color=always {posargs:--all-files}
pre-commit run isort --color=always {posargs:--all-files}
pre-commit run prettier --color=always {posargs:--all-files}
pre-commit run blacken-docs --color=always {posargs:--all-files}
pre-commit run docformatter --color=always {posargs:--all-files}
[testenv:typecheck]
deps = pre-commit
commands = pre-commit run mypy --color=always {posargs:--all-files}
[testenv:docs]
deps =
mkdocs-material
mkdocstrings[python]
black
commands = mkdocs build