Skip to content

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

Open
frjo wants to merge 2 commits into
mainfrom
maintenance/django-upgrade
Open

Add django-upgrade and pyupgrade to pre-commit.#4958
frjo wants to merge 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
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.

1 participant