Skip to content
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

Merged
merged 5 commits into from
Feb 26, 2024

Conversation

dekkers
Copy link
Contributor

@dekkers dekkers commented Feb 21, 2024

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.

@dekkers dekkers self-assigned this Feb 21, 2024
@dekkers dekkers requested a review from a team as a code owner February 21, 2024 16:17
ammar92
ammar92 previously approved these changes Feb 22, 2024
Copy link
Contributor

@ammar92 ammar92 left a 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.

@underdarknl
Copy link
Contributor

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

@underdarknl underdarknl merged commit 4ca96c3 into main Feb 26, 2024
26 of 27 checks passed
@underdarknl underdarknl deleted the split-on-trailing-comma branch February 26, 2024 09:10
@dekkers dekkers mentioned this pull request Feb 27, 2024
8 tasks
zcrt pushed a commit to zcrt/nl-kat-coordination that referenced this pull request Feb 27, 2024
jpbruinsslot added a commit that referenced this pull request Mar 5, 2024
* 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)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants