Modernize packaging, linting, and CI quality gates - #1
Merged
Conversation
Member
Author
|
Also, fgcz_python_project_templete has a typo |
leoschwarz
commented
Jul 24, 2026
| max-args = 7 | ||
|
|
||
| [tool.ruff.lint.pydocstyle] | ||
| convention = "google" |
Member
Author
There was a problem hiding this comment.
I'm not using any of the supported conventions at the moment, since I still use ReST style docstrings...
Google style is more terse, than numpy style.
Type: "google" | "numpy" | "pep257"
- Switch build backend from hatchling to uv_build (module-name pinned). - Run Ruff as a local uv-run hook (single version source in the lockfile), bump to 0.16.0, and expand the lint rule set (security, docstrings, annotations, pytest, pathlib, and more). - Add a uv-based CI matrix testing the supported Python range and dependency resolution bounds (lowest-direct on the minimum, highest on the maximum). - Add Dependabot for the uv and GitHub Actions ecosystems. - Document switching the type-check gate from Pyright to basedpyright.
leoschwarz
force-pushed
the
chore/toolchain-and-ci-refresh
branch
from
July 24, 2026 13:46
0c174d4 to
1da67f1
Compare
leoschwarz
commented
Jul 24, 2026
| @@ -45,27 +45,45 @@ target-version = "py312" | |||
|
|
|||
| [tool.ruff.lint] | |||
Member
Author
There was a problem hiding this comment.
I think the choice of the ideal ruff rules is extremely subjective. Not even sure if I agree with this. What you can also do is start with the minimum, and then run
uv run ruff check --select ALL --statistics
to get a rough idea of the problems which might be present.
leoschwarz
marked this pull request as ready for review
July 24, 2026 13:55
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Some improvements:
uv_buildby default--resolution lowest-direct, maximum withhighest.uvand GitHub Actions ecosystems, and a docs note on switching the type-check gate to basedpyright (Pyright stays default for its maintenance backing).🤖 Prepared with assistance from Claude Opus 4.8 via Claude Code.