goinnn / django-multiselectfield

A Multiple Choice model field
GNU Lesser General Public License v3.0
449 stars 208 forks source link

Add pre-commit config and lint files #161

Open mikemanger opened 4 months ago

mikemanger commented 4 months ago

Adds pre-commit config to run django-upgrade, flake8 and pyupgrade.

This has picked up a few issues with the example project which makes it runnable with Django 4.2 (fixes #140) and updates the use of super() etc. to be inline with modern practices.

This could be taken further with isort, black or maybe even ruff.