1modm / petereport

PeTeReport is an open-source application vulnerability reporting tool.
https://1modm.github.io/petereport/
BSD 3-Clause "New" or "Revised" License
449 stars 131 forks source link

Linter #63

Closed noraj closed 1 year ago

noraj commented 1 year ago

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`
1modm commented 1 year ago

Thanks! let me take a look into ruff and these changes and I will commit if works