Repository navigation
Migrate to uv, setuptools-scm, prek, ruff plus some pre-commit add-ons - #13
Conversation
rtibbles
left a comment
There was a problem hiding this comment.
Changes make sense, diff looks minimal - just the required ruff reformatting.
rtibblesbot
left a comment
There was a problem hiding this comment.
Clean tooling migration — straightforward switch from pip/pre-commit/black+flake8 to uv/prek/ruff with no functional changes to the plugin itself.
CI passing. No UI files changed — visual inspection skipped.
- praise:
fetch-depth: 0correctly included on all checkout steps — setuptools-scm needs the full tag history to compute the version; without it CI would fall back to0.0.0on every build. - nitpick: Classifiers list only Python 3.9 but
requires-python = ">=3.9, <3.15"covers up to 3.15. Worth expanding the classifier list as newer Python versions are validated.
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
Reviewed the pull request diff checking for:
- Correctness: bugs, edge cases, undocumented behavior, resource leaks, hardcoded values
- Design: unnecessary complexity, naming, readability, comment accuracy, redundant state
- Architecture: duplicated concerns, minimal interfaces, composition over inheritance
- Testing: behavior-based assertions, mocks only at hard boundaries, accurate coverage
- Completeness: missing dependencies, unupdated usages, i18n, accessibility, security
- Principles: DRY (same reason to change), SRP, Rule of Three (no premature abstraction)
- Checked CI status and linked issue acceptance criteria
- For UI changes: inspected screenshots for layout, visual completeness, and consistency
| - uses: actions/checkout@v6.0.2 | ||
| if: ${{ needs.pre_job.outputs.should_skip != 'true' }} | ||
| with: | ||
| fetch-depth: 0 |
There was a problem hiding this comment.
praise: fetch-depth: 0 is the critical detail here — setuptools-scm traverses the full git history to find the nearest version tag. Omitting it would cause every CI build to produce version 0.0.0 rather than the real tag-derived version.
| "Intended Audience :: Developers", | ||
| "Natural Language :: English", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", |
There was a problem hiding this comment.
nitpick: requires-python allows up to 3.15 but classifiers only advertise 3.9. As the project is tested or used on 3.10–3.14, adding the corresponding Programming Language :: Python :: 3.X entries keeps PyPI metadata accurate.
Summary
pyproject.tomlanduv.lockfor tracking python depspre-commitwithprek, andblack+flake8withruffuv.lockAI usage
AI was instructed to perform this migration. Human followed up making sure CI action versions were up-to-date, and added more pre-commit rules. Verified tests pass and build process works locally.