Skip to content

Update ruff version#424

Merged
psomhorst merged 9 commits intodevelopfrom
feature/update_ruff_version
Aug 25, 2025
Merged

Update ruff version#424
psomhorst merged 9 commits intodevelopfrom
feature/update_ruff_version

Conversation

@psomhorst
Copy link
Copy Markdown
Contributor

Updates to ruff 0.12.10 and fixes all issues resulting from the update.

@psomhorst psomhorst requested a review from Copilot August 25, 2025 15:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the ruff linter from version 0.11.7 to 0.12.10 and fixes all linting issues that arose from the version update. The changes focus on resolving warning-related test assertions and import optimization rules.

  • Updates ruff dependency version in pyproject.toml
  • Fixes test deprecation warning assertions by adding specific match patterns
  • Resolves import-related linting issues by adding noqa comments and reorganizing imports

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Updates ruff version from 0.11.7 to 0.12.10
tests/test_pixel_breath.py Adds specific match patterns to pytest.warns calls for deprecation warnings
tests/test_parameter_tiv.py Adds specific match patterns to pytest.warns calls for deprecation warnings
tests/test_eeli.py Adds specific match patterns to pytest.warns calls for deprecation warnings
tests/test_continuous_data.py Updates warning handling and adds assertion for no warnings case
tests/mixins/test_slicing.py Adds specific match patterns to pytest.warns calls for user warnings
eitprocessing/roi/init.py Adds noqa comments for import-within-function and dataclass issues
eitprocessing/plotting/rate_detection.py Reorganizes imports to use TYPE_CHECKING pattern
eitprocessing/filters/mdn.py Removes unused import
eitprocessing/features/rate_detection.py Removes TYPE_CHECKING and moves import to top level
eitprocessing/features/pixel_breath.py Adds noqa comment for import-within-function
eitprocessing/datahandling/pixelmap.py Moves import to top level and adds noqa comments
eitprocessing/datahandling/mixins/equality.py Adds noqa comment for dataclass without hash issue
eitprocessing/datahandling/loading/init.py Adds noqa comment for import-within-function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 238 to 240
def plotting(self) -> FilterPlotting:
"""Return the plotting class for this filter."""
from eitprocessing.plotting.filter import FilterPlotting

return FilterPlotting()
Copy link

Copilot AI Aug 25, 2025

Choose a reason for hiding this comment

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

The FilterPlotting import was removed but the class is still being instantiated on line 240. This will cause a NameError at runtime since FilterPlotting is not defined in this scope.

Copilot uses AI. Check for mistakes.
@psomhorst psomhorst merged commit b400efa into develop Aug 25, 2025
3 checks passed
@psomhorst psomhorst deleted the feature/update_ruff_version branch August 25, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants