Repository navigation
Update to uv #592
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
Update to uv #592
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b7d5594
Add pyproject.toml for use of uv
izzyknmi 3099e97
Update .pre-commit-config.yaml to use bandit and ruff
izzyknmi a005416
Add pre-commit and apply the rules
izzyknmi a4b236e
Add ruff check to sort imports
izzyknmi 476d234
Sort imports on all files
izzyknmi e837697
Rename workflow
izzyknmi 52332a3
Update workflow
izzyknmi c44c517
Fix dev dependencies
izzyknmi c4f1b52
Update uv lock
izzyknmi 87c2d9f
Change black to bandit
izzyknmi e251d2f
Move what can be moved from setup.py to pyproject.toml
izzyknmi d98272b
Update readme to mention uv
izzyknmi c06a2e6
Update readme and contributing files with uv
izzyknmi 5ff1154
Update tests with uv
izzyknmi 1fe364d
Update tests with uv, try 2
izzyknmi 7661b45
Update tests with uv, try 3
izzyknmi c75872b
Update tests with uv, try 4
izzyknmi 7390cac
Update tests with uv, try 5
izzyknmi 8645d1f
Update tests with uv: try 7, gdal installed after numpy
izzyknmi 4d09a79
Merge branch 'main' into update-to-uv
izzyknmi 012ae58
Format after merge
izzyknmi 8e062f8
Get the testing to trigger
izzyknmi ad631fc
Update gitignore with test files
izzyknmi 341f9ef
Update bandit to work with pyproject
izzyknmi 2b55918
Add separate GDAL installer that checks local install and adds it to …
izzyknmi 8cfff6a
Add uv run back around bandit in the tests!
izzyknmi bd6914a
Update GDAL installation for MacOS
izzyknmi 5b91ef8
Lower tolerance on tests. Remove GDAL version from pyproject (oops)
izzyknmi 267e316
Update CONTRIBUTING.rst
izzyknmi 56c255f
Update pyproject.toml
izzyknmi 0cab3dd
Update .github/workflows/test_pysteps.yml
izzyknmi 65fd323
Update test names
izzyknmi df8a57a
Remove uv.lock from the repo and add it to gitignore
izzyknmi 120a0e2
Revert "Remove uv.lock from the repo and add it to gitignore"
izzyknmi dc78d90
Merge tests into one workflow
izzyknmi 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,13 +1,28 @@ | ||
| repos: | ||
| - repo: https://github.com/psf/black | ||
| rev: 26.1.0 | ||
| - repo: local | ||
| hooks: | ||
| - id: black | ||
| language_version: python3 | ||
|
|
||
| - repo: https://github.com/PyCQA/bandit | ||
| rev: 1.9.4 | ||
| - id: run-bandit | ||
| name: run-bandit | ||
| entry: bandit -c pyproject.toml -r . | ||
| language: system | ||
| verbose: true | ||
| pass_filenames: false | ||
| stages: [ pre-commit ] | ||
| - repo: local | ||
| hooks: | ||
| - id: bandit | ||
| args: ["-c", "bandit.yaml"] | ||
| additional_dependencies: ["bandit[yaml]"] | ||
| - id: sort-imports | ||
| name: sort-imports | ||
| entry: uv run ruff check --fix | ||
| language: system | ||
| verbose: true | ||
| pass_filenames: false | ||
| stages: [ pre-commit ] | ||
| - repo: local | ||
| hooks: | ||
| - id: run-ruff | ||
| name: run-ruff | ||
| entry: uv run ruff format | ||
| language: system | ||
| verbose: true | ||
| pass_filenames: false | ||
| stages: [ pre-commit ] |
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.
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.