-
Notifications
You must be signed in to change notification settings - Fork 58
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
Disable ruff split-on-trailing-comma and update ruff #2544
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's unfortunate, because I did actually like the newlines in imports as they're easier to read and more tidy. However, I like consistency more and too bad it doesn't reformat it properly again if the import line is shortened.
I agree. Reformatting back would be ideal, but if thats not an option I agree with reducing the noise in Pr's |
Co-authored-by: ammar92 <[email protected]> Co-authored-by: Jan Klopper <[email protected]>
* main: (85 commits) Fix wrong solving of merge conflict (#2585) Add metrics collection for scheduler using prometheus (#2468) Hotfix for where_in queries for abstract types (#2577) Update django (#2587) Fix octopoes typing (#2555) Create findings report (#2393) Raise exception if boefje input OOI has been deleted (#2573) Set a timeout on hanging test ssl container (#2560) Feature/efficient reporting (#2516) Updated findings database. Removed old findings, added Impact, Source… (#2569) add unit test for web report (#2528) Add pool size config and logs (#2541) Quick fix for PDF table overflow (#2562) Fix/2527 octopoes unicode (#2558) Add return typing to report test fixtures (#2557) Sort vulnerabilities in vulnerability report (#2378) Disable ruff split-on-trailing-comma and update ruff (#2544) Select all oois triggers toggle all (#2536) Remove unnecessary toplevel dependencies (#2554) Make valid time required parameter in the octopoes API (#2543) ...
Changes
See https://docs.astral.sh/ruff/settings/#lint_isort_split-on-trailing-comma
I see this cause unnecessary noise in PRs. Probably it is because if you add an import while coding, the line can be split because it gets too long, and if later the import is removed again it will not be folded back.
It also updates ruff and move the linting config to ruff.lint (this has been changed in ruff 0.2 because they also added a formatter)
Checklist for code reviewers:
Copy-paste the checklist from the docs/source/templates folder into your comment.
Checklist for QA:
Copy-paste the checklist from the docs/source/templates folder into your comment.