Skip to content

Linter #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 18, 2023
Merged

Linter #63

merged 9 commits into from
Jan 18, 2023

Conversation

noraj
Copy link
Contributor

@noraj noraj commented Jan 8, 2023

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`

noraj added 9 commits January 8, 2023 16:01
F841 Local variable `count_findings_summary` is assigned to but never used
F821 Undefined name `Http404`
F821 Undefined name `LazyEncoder`
F841 Local variable `template_findings_summary` is assigned to but never used
E402 Module level import not at top of file
@1modm
Copy link
Owner

1modm commented Jan 8, 2023

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

@1modm 1modm merged commit d77ca17 into 1modm:main Jan 18, 2023
@noraj noraj deleted the linter branch January 18, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants