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

Update pre-commit and all hooks #3923

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Update pre-commit and all hooks #3923

merged 2 commits into from
Dec 3, 2024

Conversation

dekkers
Copy link
Contributor

@dekkers dekkers commented Dec 2, 2024

Changes

This updates pre-commit and all pre-commit hooks. Fixes all new issues. I added SIM103 to the ignore list because that rule resulted in some long return statements that in my opinion were less readable than the current code.

Issue link

#3877

QA notes

I refactored the add related object code a bit to fix mypy error that ooi_relation might be None and the helper for extracting file from container also had a code change to use with (that was the error).


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 requested a review from a team as a code owner December 2, 2024 22:07
@dekkers dekkers self-assigned this Dec 2, 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.

Nice work. Updating the hooks was on my to-do list for this week. Let’s get this merged as soon as possible

Copy link

sonarcloud bot commented Dec 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
53.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@underdarknl underdarknl merged commit 9fad8da into main Dec 3, 2024
40 of 41 checks passed
@underdarknl underdarknl deleted the pre-commit branch December 3, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants