Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mapping Provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Next Generation Map
Mapping Provider
Commits
aae7d283
Commit
aae7d283
authored
1 week ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
added unit tests to tox, and also sbom generation
parent
68ff9548
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+11
-43
11 additions, 43 deletions
.gitignore
tox.ini
+16
-0
16 additions, 0 deletions
tox.ini
with
27 additions
and
43 deletions
.gitignore
+
11
−
43
View file @
aae7d283
# 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
This diff is collapsed.
Click to expand it.
tox.ini
+
16
−
0
View file @
aae7d283
[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
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment