-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nox for testing, hatch as build backend
- Also removed flake8, covered by ruff - Testing major Python versions 3.10-3.13 Signed-off-by: Sebastian Schleemilch <[email protected]>
- Loading branch information
1 parent
c1eac3a
commit eae6f36
Showing
5 changed files
with
126 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import nox | ||
|
||
PYTHON_VERSIONS = ["3.10", "3.13"] | ||
|
||
nox.options.default_venv_backend = "uv" | ||
|
||
|
||
@nox.session(python=PYTHON_VERSIONS) | ||
def tests(session): | ||
session.run_install( | ||
"uv", | ||
"sync", | ||
env={"UV_PROJECT_ENVIRONMENT": session.virtualenv.location}, | ||
) | ||
session.run( | ||
"pytest", | ||
"--cov=vss_tools", | ||
"--cov-report=term-missing", | ||
"--cov-fail-under=88", | ||
*session.posargs, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.