-
Notifications
You must be signed in to change notification settings - Fork 11
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
ci: [pre-commit.ci] pre-commit autoupdate #1184
Conversation
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the WalkthroughThe updates consist of version changes for pre-commit hooks in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PreCommitConfig
participant TestFiles
participant PyProject
participant Notebook
User->>PreCommitConfig: Update versions
User->>TestFiles: Modify decorators
User->>PyProject: Add Jupyter checks
User->>Notebook: Restructure code
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1184 +/- ##
========================================
Coverage 93.06% 93.06%
========================================
Files 209 209
Lines 32897 32906 +9
========================================
+ Hits 30614 30623 +9
Misses 2283 2283 ☔ View full report in Codecov by Sentry. |
060f4bb
to
815623d
Compare
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (28)
- .pre-commit-config.yaml (2 hunks)
- package/PartSegImage/tifffile_fixes.py (1 hunks)
- package/tests/conftest.py (16 hunks)
- package/tests/test_PartSeg/conftest.py (3 hunks)
- package/tests/test_PartSeg/roi_analysis/test_batch.py (1 hunks)
- package/tests/test_PartSeg/roi_analysis/test_export_batch.py (2 hunks)
- package/tests/test_PartSeg/roi_analysis/test_image_view.py (4 hunks)
- package/tests/test_PartSeg/roi_analysis/test_main_window.py (3 hunks)
- package/tests/test_PartSeg/roi_mask/test_batch.py (1 hunks)
- package/tests/test_PartSeg/roi_mask/test_main_window.py (2 hunks)
- package/tests/test_PartSeg/test_analysis.py (4 hunks)
- package/tests/test_PartSeg/test_base_widgets.py (2 hunks)
- package/tests/test_PartSeg/test_channel_control.py (4 hunks)
- package/tests/test_PartSeg/test_check_release.py (1 hunks)
- package/tests/test_PartSeg/test_common_backend.py (1 hunks)
- package/tests/test_PartSeg/test_common_gui.py (8 hunks)
- package/tests/test_PartSeg/test_main_windows.py (2 hunks)
- package/tests/test_PartSeg/test_napari_image_view.py (5 hunks)
- package/tests/test_PartSeg/test_napari_widgets.py (8 hunks)
- package/tests/test_PartSeg/test_roi_analysis_batch.py (1 hunks)
- package/tests/test_PartSeg/test_settings.py (1 hunks)
- package/tests/test_PartSeg/test_viewer.py (3 hunks)
- package/tests/test_PartSegCore/test_analysis_batch.py (13 hunks)
- package/tests/test_PartSegCore/test_io.py (1 hunks)
- package/tests/test_PartSegCore/test_measurements.py (2 hunks)
- package/tests/test_PartSegCore/test_napari_plugins.py (1 hunks)
- pyproject.toml (1 hunks)
- tutorials/tutorial_neuron_types/Neuron_types_example.ipynb (17 hunks)
Files skipped from review due to trivial changes (24)
- .pre-commit-config.yaml
- package/tests/conftest.py
- package/tests/test_PartSeg/conftest.py
- package/tests/test_PartSeg/roi_analysis/test_batch.py
- package/tests/test_PartSeg/roi_analysis/test_export_batch.py
- package/tests/test_PartSeg/roi_analysis/test_image_view.py
- package/tests/test_PartSeg/roi_analysis/test_main_window.py
- package/tests/test_PartSeg/roi_mask/test_batch.py
- package/tests/test_PartSeg/roi_mask/test_main_window.py
- package/tests/test_PartSeg/test_analysis.py
- package/tests/test_PartSeg/test_base_widgets.py
- package/tests/test_PartSeg/test_channel_control.py
- package/tests/test_PartSeg/test_common_backend.py
- package/tests/test_PartSeg/test_common_gui.py
- package/tests/test_PartSeg/test_main_windows.py
- package/tests/test_PartSeg/test_napari_image_view.py
- package/tests/test_PartSeg/test_napari_widgets.py
- package/tests/test_PartSeg/test_roi_analysis_batch.py
- package/tests/test_PartSeg/test_settings.py
- package/tests/test_PartSegCore/test_analysis_batch.py
- package/tests/test_PartSegCore/test_io.py
- package/tests/test_PartSegCore/test_measurements.py
- package/tests/test_PartSegCore/test_napari_plugins.py
- tutorials/tutorial_neuron_types/Neuron_types_example.ipynb
Additional context used
Ruff
package/PartSegImage/tifffile_fixes.py
22-22: Unused function argument:
self
(ARG001)
Additional comments not posted (5)
package/tests/test_PartSeg/test_check_release.py (1)
16-16
: Verify the decorator usage.The change in the decorator usage from
@pytest.mark.enablethread()
to@pytest.mark.enablethread
might affect how pytest interprets the decorator. Ensure that the decorator is used correctly without parameters.Verify the decorator usage in the pytest documentation or by running the tests.
package/tests/test_PartSeg/test_viewer.py (3)
22-23
: Verify the decorator usage.The change in the decorator usage from
@pytest.mark.windows_ci_skip()
to@pytest.mark.windows_ci_skip
might affect how pytest interprets the decorator. Ensure that the decorator is used correctly without parameters.Verify the decorator usage in the pytest documentation or by running the tests.
41-42
: Verify the decorator usage.The change in the decorator usage from
@pytest.mark.windows_ci_skip()
to@pytest.mark.windows_ci_skip
might affect how pytest interprets the decorator. Ensure that the decorator is used correctly without parameters.Verify the decorator usage in the pytest documentation or by running the tests.
66-67
: Verify the decorator usage.The change in the decorator usage from
@pytest.mark.windows_ci_skip()
to@pytest.mark.windows_ci_skip
might affect how pytest interprets the decorator. Ensure that the decorator is used correctly without parameters.Verify the decorator usage in the pytest documentation or by running the tests.
pyproject.toml (1)
346-346
: LGTM!The addition of this entry enhances the project's static analysis capabilities by including Jupyter Notebook files in the scope of checks. This change helps maintain code quality and consistency across different file types within the project.
The code changes are approved.
def _dummy_report_func(self): | ||
"""dummy function for report_func""" |
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.
Remove unused self
parameter.
The self
parameter is unused in the _dummy_report_func
method. Removing it will clean up the code.
Apply this diff to remove the unused parameter:
-def _dummy_report_func(self):
+def _dummy_report_func():
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
def _dummy_report_func(self): | |
"""dummy function for report_func""" | |
def _dummy_report_func(): | |
"""dummy function for report_func""" |
Tools
Ruff
22-22: Unused function argument:
self
(ARG001)
pre-tests are failing because of pydantic/pydantic#10239 |
updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.7...v0.6.3) - [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)
70d636d
to
486301a
Compare
for more information, see https://pre-commit.ci
|
updates:
Summary by CodeRabbit
New Features
Style
Documentation
Chores