Skip to content
Snippets Groups Projects
tox.ini 677 B
Newer Older
hhn's avatar
hhn committed
envlist = py38

[testenv]
description = Run tests with {basepython}
deps =
    -rrequirements-test.txt
    -rrequirements.txt
commands =
    {envpython} -m pytest --junitxml=junit-{envname}.xml {posargs}
hhn's avatar
hhn committed
    {envpython} -m mypy --config-file mypy.ini setra_client tests

[pytest]
xfail_strict = true
addopts = -rxs -v

[testenv:black]
basepython = python3
deps =
    black
commands =
    black --check --diff --target-version py310 .

[testenv:yamllint]
deps =
    yamllint
commands =
    yamllint --config-file .yamllint.yaml .

[testenv:json]
deps =
    demjson3
allowlist_externals =
    sh
commands =
    sh -c 'git ls-files -z "*.json" | xargs -0 jsonlint --strict'