Skip to content

Add pyupgrade and django-upgrade hooks, enforce ruff-format in CI#1

Merged
mpasternak merged 1 commit into
mainfrom
chore/lint-format-pipeline
May 8, 2026
Merged

Add pyupgrade and django-upgrade hooks, enforce ruff-format in CI#1
mpasternak merged 1 commit into
mainfrom
chore/lint-format-pipeline

Conversation

@mpasternak
Copy link
Copy Markdown
Member

Summary

  • Add pyupgrade (--py311-plus) and django-upgrade (--target-version 4.2) to .pre-commit-config.yaml.
  • Drop deprecated default_app_config from django_dev_helpers/__init__.py (auto-detected from apps.py since Django 3.2; flagged by django-upgrade).
  • Add ruff format --check . step to ci.yml so format drift fails CI in every Python × Django matrix cell.
  • Apply ruff-format across src/ and tests/ (no semantic changes — pure formatting).

Test plan

  • uv run pre-commit run --all-files — all hooks pass (idempotent on second pass)
  • uv run pytest -q — 93 passed
  • uv run mypy src/django_dev_helpers — Success, no issues found in 18 source files
  • CI matrix green on this PR

🤖 Generated with Claude Code

- Add pyupgrade (--py311-plus) and django-upgrade (--target-version 4.2)
  to .pre-commit-config.yaml.
- Drop deprecated default_app_config from django_dev_helpers/__init__.py
  (auto-detected from apps.py since Django 3.2).
- Add `ruff format --check .` step to ci.yml so format drift fails CI.
- Apply ruff-format across src/ and tests/ (no semantic changes).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mpasternak mpasternak merged commit 67901f9 into main May 8, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant