Skip to content

Commit

Permalink
ci: [pre-commit.ci] pre-commit autoupdate (#1237)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black-pre-commit-mirror: 24.10.0 →
25.1.0](psf/black-pre-commit-mirror@24.10.0...25.1.0)
- [github.com/astral-sh/ruff-pre-commit: v0.8.6 →
v0.9.4](astral-sh/ruff-pre-commit@v0.8.6...v0.9.4)
- [github.com/executablebooks/mdformat: 0.7.21 →
0.7.22](hukkin/mdformat@0.7.21...0.7.22)
- [github.com/codespell-project/codespell: v2.3.0 →
v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1)
<!--pre-commit.ci end-->

## Summary by Sourcery

Update ruff-pre-commit to v0.9.1.

Enhancements:
- Upgrade ruff from v0.8.6 to v0.9.1.

CI:
- Update pre-commit hooks to the latest version.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Grzegorz Bokota <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Czaki authored Feb 6, 2025
1 parent 38b7f2b commit d178e72
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
pass_filenames: true
Expand All @@ -17,15 +17,15 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.9.4
hooks:
- id: ruff
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.21 # Use the ref you want to point at
rev: 0.7.22 # Use the ref you want to point at
hooks:
- id: mdformat
exclude: TEST_FAIL_TEMPLATE.md|bug_report.md|feature_request.md
Expand All @@ -45,7 +45,7 @@ repos:
files: ^package/PartSegImage/.+\.py

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion package/PartSeg/common_gui/colormap_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class for preview single colormap. Witch checkbox for change selection.
:param colormap: colormap to show
:param accepted: if checkbox should be checked
:param name: name which will be emitted in all signals as firs argument
:param name: name which will be emitted in all signals as first argument
"""

selection_changed = Signal(str, bool)
Expand Down
2 changes: 1 addition & 1 deletion package/PartSeg/common_gui/qt_modal.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""from napari._qt.dialog.modal """
"""from napari._qt.dialog.modal"""

from qtpy.QtCore import QPoint, QRect, Qt
from qtpy.QtGui import QCursor, QGuiApplication, QKeyEvent
Expand Down
2 changes: 1 addition & 1 deletion package/PartSegCore/analysis/load_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def load_project_from_tar(tar_file, file_path):


def load_project(
file: typing.Union[str, Path, tarfile.TarFile, TextIOBase, BufferedIOBase, RawIOBase, IOBase]
file: typing.Union[str, Path, tarfile.TarFile, TextIOBase, BufferedIOBase, RawIOBase, IOBase],
) -> ProjectTuple:
"""Load project from archive"""
tar_file, file_path = open_tar_file(file)
Expand Down
2 changes: 1 addition & 1 deletion package/PartSegImage/image_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def prepare_metadata(cls, image: Image, channels: int):
shift = image.get_um_shift()
plane_li = [
{
"TheT": t,
"TheT": t, # codespell:ignore thet
"TheZ": z,
"TheC": c,
"PositionZ": shift[0] if len(shift) == 3 else 0,
Expand Down

0 comments on commit d178e72

Please sign in to comment.