OpenMiInk/third_party/ci-notary-service/tox.ini
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

84 lines
1.8 KiB
INI

# SPDX-License-Identifier: CC0-1.0
# SPDX-FileCopyrightText: 2023 KDE e.V.
[tox]
minversion = 4.1.3
envlist = py{310,311},coverage,format,lint,security,sort-imports,static-type-checker,yamllint
[testenv]
description = installs the module and runs the tests for this Python version
skip_install = True
deps = pytest
commands =
pip install -e .
pytest --junitxml=junit-{envname}.xml --junit-prefix={envname} tests {posargs}
[testenv:coverage]
description = runs the tests with coverage
skip_install = True
deps =
-r{toxinidir}/requirements.txt
coverage[toml]
pytest
commands =
coverage erase
coverage run --parallel -m pytest --junitxml=junit-{envname}.xml --junit-prefix={envname} tests
coverage combine
coverage xml
coverage report
[testenv:check-format]
description = runs black --check
skip_install = true
deps = black==23.11.0
commands = black --check .
[testenv:format]
description = runs black
skip_install = true
deps = black==23.11.0
commands = black .
[testenv:lint]
description = runs flake8
skip_install = true
deps = flake8==6.1.0
commands = flake8 .
[testenv:security]
description = runs bandit
skip_install = true
deps = bandit[toml]==1.8.6
commands = bandit -c pyproject.toml -r .
[testenv:check-imports]
description = runs isort --check
skip_install = true
deps = isort==5.12.0
commands = isort --check .
[testenv:sort-imports]
description = runs isort
skip_install = true
deps = isort==5.12.0
commands = isort .
[testenv:static-type-checker]
description = runs mypy
skip_install = true
deps =
mypy==1.7.0
types-paramiko
types-PyYAML
types-requests
azure-storage-blob
markdownify
pkginfo
git+https://invent.kde.org/kloecker/microstore.git
commands = mypy .
[testenv:yamllint]
description = runs yamllint
skip_install = true
deps = yamllint==1.33.0
commands = yamllint .