Skip to content
Snippets Groups Projects
Commit aae7d283 authored by Erik Reid's avatar Erik Reid
Browse files

added unit tests to tox, and also sbom generation

parent 68ff9548
No related branches found
No related tags found
No related merge requests found
# Byte-compiled / optimized / DLL files .tox
__pycache__/ bom.json
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
build/
dist/
*.egg-info/
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Virtual environments
venv/
.env
.venv/
# PyInstaller
*.manifest
*.spec
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
coverage.xml coverage.xml
.cache .coverage
.pytest_cache/ htmlcov
*.egg-info
# Sphinx documentation __pycache__
docs/_build/ .vscode
docs/build
# Editor / OS junk
.DS_Store .DS_Store
Thumbs.db
.idea/ # drawio tmp files
.vscode/ *.bkp
*.swp
*.swo
\ No newline at end of file
[tox] [tox]
envlist = lint, typecheck, docs envlist = lint, typecheck, docs
[testenv:coverage]
description = Run unit tests and save coverage
deps =
pytest
pytest-cov
httpx # required for fastapi TestClient
responses
commands =
coverage erase
pytest --cov mapping_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs
[testenv:lint] [testenv:lint]
description = Lint code with Ruff description = Lint code with Ruff
deps = ruff deps = ruff
...@@ -14,6 +25,11 @@ deps = ...@@ -14,6 +25,11 @@ deps =
types-requests types-requests
commands = mypy mapping_provider commands = mypy mapping_provider
[testenv:sbom]
description = Create SBOM for dependency analysis
deps = cyclonedx-py
commands = cyclonedx-py environment --output-format json -o bom.json
[testenv:docs] [testenv:docs]
description = Build docs description = Build docs
deps = deps =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment