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

Enable ruff flake8-bugbear rule #2536

Merged
merged 7 commits into from
Oct 16, 2024
Merged

Enable ruff flake8-bugbear rule #2536

merged 7 commits into from
Oct 16, 2024

Conversation

bouweandela
Copy link
Member

@bouweandela bouweandela commented Oct 1, 2024

Description

Enable the flake8-bugbear ruff linter rule.

As recommended by https://learn.scientific-python.org/development/guides/repo-review/?repo=esmvalgroup%2Fesmvalcore&branch=main

Related to #2528


Before you get started

Checklist

It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.


To help with the number pull requests:

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.01%. Comparing base (e4e6b9b) to head (4ea247a).
Report is 52 commits behind head on main.

Files with missing lines Patch % Lines
esmvalcore/preprocessor/_regrid_esmpy.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2536      +/-   ##
==========================================
+ Coverage   94.91%   95.01%   +0.09%     
==========================================
  Files         251      251              
  Lines       14264    14264              
==========================================
+ Hits        13539    13553      +14     
+ Misses        725      711      -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bouweandela
Copy link
Member Author

bouweandela commented Oct 10, 2024

Regarding the test coverage: I am not sure how to test the import in esmvalcore/preprocessor/_regrid_esmpy.py (and the module is scheduled for removal in v2.14 anyway).

@bouweandela bouweandela marked this pull request as ready for review October 10, 2024 20:07
Copy link
Contributor

@schlunma schlunma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Just one tiny comment, thanks!!

esmvalcore/config/_config_object.py Outdated Show resolved Hide resolved
@schlunma schlunma added this to the v2.12.0 milestone Oct 16, 2024
Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐞 🐻

@valeriupredoi valeriupredoi merged commit 1227b2f into main Oct 16, 2024
6 of 7 checks passed
@valeriupredoi valeriupredoi deleted the enable-bugbear-rule branch October 16, 2024 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants