Skip to content

Add django-upgrade and pyupgrade to pre-commit. - #4958

Merged
frjo merged 2 commits into
mainfrom
maintenance/django-upgrade
Aug 25, 2026
Merged

Add django-upgrade and pyupgrade to pre-commit.#4958
frjo merged 2 commits into
mainfrom
maintenance/django-upgrade

Conversation

@frjo

@frjo frjo commented Aug 20, 2026

Copy link
Copy Markdown
Member

Django upgrade, see https://django-upgrade.readthedocs.io/, is a neat tool that helps with fixing code when updating Django.

pyupgrade, see https://github.com/asottile/pyupgrade, same idea but for python.

They found a few instances of outdated code that it updated. No change in functionality.

I think these tools will be helpful the next time we update Django/Python. They will also help us avoid old style code.

@frjo frjo added Type: Maintenance Type: Patch Mini change, used in release drafter labels Aug 20, 2026
@frjo frjo changed the title Add django-upgrade to pre-commit. Add django-upgrade and pyupgrade to pre-commit. Aug 21, 2026
@frjo
frjo force-pushed the maintenance/django-upgrade branch from 927415d to 14ab337 Compare August 21, 2026 06:20
@frjo
frjo requested a review from wes-otf August 24, 2026 13:26
@frjo
frjo force-pushed the maintenance/django-upgrade branch from 14ab337 to 69030c1 Compare August 24, 2026 14:10

@wes-otf wes-otf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice to me, especially like django upgrade's vaporwavey logo

@frjo
frjo merged commit 6af47a0 into main Aug 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Type: Patch Mini change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants