-
Notifications
You must be signed in to change notification settings - Fork 286
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
DOCS: Enabled all pydocstyle (numpy) ruff rules with a list of specific exceptions. #5636
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5636 +/- ##
=======================================
Coverage 89.69% 89.69%
=======================================
Files 90 90
Lines 22807 22807
Branches 5441 5441
=======================================
Hits 20456 20456
Misses 1618 1618
Partials 733 733 ☔ View full report in Codecov by Sentry. |
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.
@tkknight This looks good, thanks!
We can iterate on this and slowly move forwards 👍
... warnings.filterwarnings("ignore", module="iris.coord_systems", lineno=449) | ||
... my_operation() | ||
... | ||
iris/coord_systems.py:800: IrisDefaultingWarning: Discarding false_easting and false_northing that are not used by Cartopy. | ||
iris/coord_systems.py:434: IrisUserWarning: Setting inverse_flattening does not affect other properties of the GeogCS object. To change other properties set them explicitly or create a new GeogCS instance. | ||
warnings.warn(wmsg, category=iris.exceptions.IrisUserWarning) | ||
iris/coord_systems.py:772: IrisDefaultingWarning: Discarding false_easting and false_northing that are not used by Cartopy. |
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.
Oops! Only just spotted this. The change should have instead been to update lineno=
to correctly target the IrisUserWarning
. #5736
🚀 Pull Request
Description
Enabled all pydocstyle (numpy) ruff rules with a list of specific exceptions.
The temporary rules can be reviewed and either removed (then not ignored) or could be promoted to a permanent rule - which we want to minimize where possible.
Running ruff will still complete without warnings or errors for now.
$ ruff ../lib/iris
Consult Iris pull request check list