-
-
Notifications
You must be signed in to change notification settings - Fork 57
Use UV and pre-commit.ci in CI suite #359
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
Conversation
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR modernizes the CI suite by adopting UV (a fast Python package manager) and introducing pre-commit.ci for automated code quality checks. The changes replace traditional pip-based workflows with UV commands and remove the separate lint job in favor of pre-commit hooks.
- Replaced pip-based dependency management with UV's
uv runcommands across CI workflows - Migrated from
[project.optional-dependencies]to[dependency-groups]in pyproject.toml for UV compatibility - Added comprehensive pre-commit configuration with hooks for formatting (ruff), upgrading (pyupgrade, django-upgrade), and various code quality checks
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
.pre-commit-config.yaml |
Introduces new pre-commit configuration with hooks for code quality, formatting, and linting |
pyproject.toml |
Migrates dependency specification from [project.optional-dependencies] to [dependency-groups] format; removes redundant selenium group |
.github/workflows/ci.yml |
Replaces pip-based commands with UV; removes separate lint job; streamlines Python and Django version testing |
.github/workflows/release.yml |
Updates to use UV for building packages (uvx commands) |
CONTRIBUTING.rst |
Updates documentation to reflect UV-based development workflow |
.readthedocs.yaml |
Removes unnecessary blank lines for cleaner formatting |
.gitignore |
Adds uv.lock to ignore UV's lock file |
tests/test_forms.py |
Code formatting changes to assertion statements (auto-formatted by ruff/black) |
example/manage.py |
Adds blank line after docstring (formatting fix) |
docs/extra.rst |
Removes trailing whitespace and extra blank line at end of file |
MANIFEST.in |
Removes trailing blank line |
.github/dependabot.yml |
Fixes indentation for YAML consistency |
.github/ISSUE_TEMPLATE/bug.yml |
Removes unnecessary blank lines for cleaner formatting |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.