Skip to content
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 #1237

Merged
merged 4 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading