-
Notifications
You must be signed in to change notification settings - Fork 4
Switch to uv #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Switch to uv #69
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
874e807
Initial uv switch
Tinche d4e3faf
Fix import sorts
Tinche eeddf44
Update Justfile
Tinche 97b86fa
CI
Tinche cb3c270
CI
Tinche 96b550c
CI
Tinche e997664
Docs
Tinche 76a68e7
Fix docs
Tinche 4529bfa
Tweak test
Tinche 9b5b170
Limit permissions
Tinche 45bdbb4
Set up doctests for future
Tinche 9d71ebe
Coverage patch
Tinche 96456c0
Fail under 98%
Tinche 0c3d871
Pin action
Tinche 2c94ab7
Pin action
Tinche 619d4ba
Changelog
Tinche 1a84cf5
Bump pypa/gh-action-pypi-publish
Tinche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,5 +1,31 @@ | ||
| python := "" | ||
| covcleanup := "true" | ||
|
|
||
| sync version="": | ||
| uv sync {{ if python != '' { '-p ' + python } else if version != '' { '-p ' + version } else { '' } }} --all-groups --all-extras | ||
|
|
||
| test *args='tests -x --ff --mypy-only-local-stub -n auto': | ||
| pdm run pytest {{args}} | ||
| uv run pytest {{args}} | ||
|
|
||
| lint: sync | ||
| uv run mypy src/ tests/ && uv run ruff check src/ tests/ && uv run black --check src/ tests/ | ||
|
|
||
| cov *args="-x --ff --mypy-only-local-stub -n auto tests": | ||
| uv run {{ if python != '' { '-p ' + python } else { '' } }} --all-extras --group frameworks --group test --group lint coverage run -m pytest {{args}} | ||
| {{ if covcleanup == "true" { "uv run coverage combine" } else { "" } }} | ||
| {{ if covcleanup == "true" { "uv run coverage report" } else { "" } }} | ||
| {{ if covcleanup == "true" { "@rm .coverage*" } else { "" } }} | ||
|
|
||
| covall: | ||
| just python=python3.11 covcleanup=false cov | ||
| just python=python3.12 covcleanup=false cov | ||
| just python=python3.13 covcleanup=false cov | ||
| just python=python3.14 covcleanup=false cov | ||
| uv run coverage combine | ||
| uv run coverage report | ||
| @rm .coverage* | ||
|
|
||
| lint: | ||
| pdm run mypy src/ tests/ && pdm run ruff check src/ tests/ && pdm run black --check src/ tests/ | ||
| docs output_dir="_build": ## generate Sphinx HTML documentation, including API docs | ||
| make -C docs -e BUILDDIR={{output_dir}} clean | ||
| make -C docs -e BUILDDIR={{output_dir}} doctest | ||
| make -C docs -e BUILDDIR={{output_dir}} html |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.