-
Notifications
You must be signed in to change notification settings - Fork 30
feat: starting migration to uv #512
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
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3c97bc2
starting migration to uv
leohoare 981be1c
single command for test
leohoare 7059d86
uv-lock in pre-commit, manually run pre-commit instead of action, add…
leohoare 3d0e691
ignore nothing to cache
leohoare df4d297
cleanup and remove comment
leohoare 368bb40
Update .github/workflows/release.yml
leohoare 3bc0013
cloeset thing to hatch scripts using project scripts
leohoare a17a10c
ignore errors (not ideal)
leohoare fad89de
move pre-commit into scripts
leohoare 3f55162
update dependency group, add frozen, remove uv-lock precommit, v6 uv,…
leohoare ab324f6
add comment to github issue
leohoare 200af7d
Merge branch 'main' into feature/migrate_to_uv
gruebel 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 |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # ruff: noqa: S602, S607 | ||
| import subprocess | ||
|
|
||
|
|
||
| def test(): | ||
| """Run pytest tests.""" | ||
| subprocess.run("pytest tests", shell=True, check=True) | ||
gruebel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| def test_cov(): | ||
| """Run tests with coverage.""" | ||
| subprocess.run("coverage run -m pytest tests", shell=True, check=True) | ||
|
|
||
|
|
||
| def cov_report(): | ||
| """Generate coverage report.""" | ||
| subprocess.run("coverage xml", shell=True, check=True) | ||
|
|
||
|
|
||
| def cov(): | ||
| """Run tests with coverage and generate report.""" | ||
| test_cov() | ||
| cov_report() | ||
|
|
||
|
|
||
| def e2e(): | ||
| """Run end-to-end tests.""" | ||
| subprocess.run("git submodule update --init --recursive", shell=True, check=True) | ||
| subprocess.run( | ||
| "cp spec/specification/assets/gherkin/* tests/features/", shell=True, check=True | ||
| ) | ||
| subprocess.run("behave tests/features/", shell=True, check=True) | ||
| subprocess.run("rm tests/features/*.feature", shell=True, check=True) | ||
|
|
||
|
|
||
| def precommit(): | ||
| """Run pre-commit hooks.""" | ||
| subprocess.run("uv run pre-commit run --all-files", shell=True, check=True) | ||
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.