I tried to lint the code and fix some code using ruff linter.
I put 1 change per commit so I would be easier for you if you want to revert one.
If everything is ok you can suash the PR.
Two rules remains that I wasn't able to handle:
app/petereport/settings.py:18:1: F403 `from config.startup import *` used; unable to detect undefined names
app/petereport/settings.py:307:1: F405 `createAdminUser` may be undefined, or defined from star imports: `config.startup`
I tried to lint the code and fix some code using ruff linter.
I put 1 change per commit so I would be easier for you if you want to revert one.
If everything is ok you can suash the PR.
Two rules remains that I wasn't able to handle: