Skip to content

Conversation

@ESadek-MO
Copy link
Contributor

🚀 Pull Request

Description


Consult Iris pull request check list


Add any of the below labels to trigger actions on this PR:

  • benchmark_this Request that this pull request be benchmarked to check if it introduces performance shifts

@codecov
Copy link

codecov bot commented Jan 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.18%. Comparing base (aebae6d) to head (ef778bc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6896   +/-   ##
=======================================
  Coverage   90.18%   90.18%           
=======================================
  Files          91       91           
  Lines       24822    24822           
  Branches     4656     4656           
=======================================
  Hits        22385    22385           
  Misses       1669     1669           
  Partials      768      768           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@HGWright HGWright 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 thing to change in a few places, from the ruff check --select PT then this is good to go.

def mock_cf_data_var():
yield mock.Mock(
def mock_cf_data_var(mocker):
yield mocker.Mock(
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

)
engine = mock.Mock(cube=Cube([23]), cf_var=cf_var, filename="foo.nc")
engine = mocker.Mock(cube=Cube([23]), cf_var=cf_var, filename="foo.nc")
yield engine
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

yield mock.Mock(
cube=mock.Mock(),
def mock_engine(mock_cf_data_var, mocker):
yield mocker.Mock(
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

)
engine = mock.Mock(cube=Cube([23]), cf_var=cf_var, filename="foo.nc")
engine = mocker.Mock(cube=Cube([23]), cf_var=cf_var, filename="foo.nc")
yield engine
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

def mock_cf_data_var():
yield mock.Mock(
def mock_cf_data_var(mocker):
yield mocker.Mock(
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

yield mock.Mock(
cube=mock.Mock(attributes={}),
def mock_engine(mock_cf_data_var, mocker):
yield mocker.Mock(
Copy link
Contributor

Choose a reason for hiding this comment

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

From ruff check --select PT replace yield with return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants