generated from executablebooks/mdformat-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (33 loc) · 922 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
[tox]
envlist =
py{312}-beartype
py{38}-cov
py{312}-pre-commit
py{38}-hook
py{312}-mypy
py{312}-ruff
isolated_build = True
skip_missing_interpreters = False
[testenv:py{312}-beartype]
extras = test
commands = pytest {posargs} --ff --nf -vv --exitfirst --beartype-packages='mdformat_mkdocs'
[testenv:py{38}-snapshot-update]
extras = test
commands = pytest {posargs} --snapshot-update
[testenv:py{38}-cov]
extras = test
commands = pytest --cov=mdformat_mkdocs {posargs}
[testenv:py{312}-pre-commit]
extras = dev
commands = pre-commit run {posargs:--all-files}
[testenv:py{38}-hook]
extras = dev
commands = pre-commit run --config .pre-commit-test.yaml {posargs:--all-files --verbose --show-diff-on-failure}
[testenv:py{312}-mypy]
deps = mypy>=1.10.0
commands = mypy ./mdformat_mkdocs
[testenv:py{312}-ruff]
deps = ruff>=0.6.1
commands =
ruff check . --fix --unsafe-fixes
ruff format .