Skip to content

Commit

Permalink
ci: [pre-commit.ci] autoupdate (#345)
Browse files Browse the repository at this point in the history
* ci: [pre-commit.ci] autoupdate

updates:
- [github.com/crate-ci/typos: v1.23.6 → typos-dict-v0.11.27](crate-ci/typos@v1.23.6...typos-dict-v0.11.27)
- [github.com/astral-sh/ruff-pre-commit: v0.5.6 → v0.6.3](astral-sh/ruff-pre-commit@v0.5.6...v0.6.3)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](abravalheri/validate-pyproject@v0.18...v0.19)
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](pre-commit/mirrors-mypy@v1.11.1...v1.11.2)

* style: [pre-commit.ci] auto fixes [...]

* update again

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Talley Lambert <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tlambert03 authored Sep 26, 2024
1 parent 31d973d commit 13758ba
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ ci:

repos:
- repo: https://github.com/crate-ci/typos
rev: v1.23.6
rev: v1.24.6
hooks:
- id: typos

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.6.8
hooks:
- id: ruff
args: [--fix]
- id: ruff-format

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.20.2
hooks:
- id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
files: "^src/"
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
import napari
import pytest
import useq
from pymmcore_plus import CMMCorePlus

from napari_micromanager._util import NMM_METADATA_KEY
from napari_micromanager.main_window import MainWindow
from pymmcore_plus import CMMCorePlus

if TYPE_CHECKING:
from collections.abc import Iterator
Expand Down
4 changes: 3 additions & 1 deletion tests/test_layer_scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
from typing import TYPE_CHECKING

import pytest

from napari_micromanager._mda_handler import _NapariMDAHandler

if TYPE_CHECKING:
import napari
from napari_micromanager.main_window import MainWindow
from pymmcore_plus import CMMCorePlus
from useq import MDASequence

from napari_micromanager.main_window import MainWindow


@pytest.mark.parametrize("axis_order", ["tpcz", "tpzc"])
def test_layer_scale(
Expand Down
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
from unittest.mock import patch

import pytest
from napari_micromanager.__main__ import main
from pymmcore_plus import CMMCorePlus

from napari_micromanager.__main__ import main


@pytest.mark.parametrize(
"argv",
Expand Down
1 change: 1 addition & 0 deletions tests/test_main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from unittest.mock import MagicMock

import useq

from napari_micromanager.main_window import MainWindow

if TYPE_CHECKING:
Expand Down
8 changes: 5 additions & 3 deletions tests/test_multid_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

from typing import TYPE_CHECKING

from napari_micromanager._gui_objects._mda_widget import MultiDWidget
from napari_micromanager._util import NMM_METADATA_KEY
from pymmcore_plus.mda import MDAEngine
from useq import MDASequence

from napari_micromanager._gui_objects._mda_widget import MultiDWidget
from napari_micromanager._util import NMM_METADATA_KEY

if TYPE_CHECKING:
from pathlib import Path

from napari_micromanager.main_window import MainWindow
from pytestqt.qtbot import QtBot

from napari_micromanager.main_window import MainWindow


def test_main_window_mda(main_window: MainWindow):
assert not main_window.viewer.layers
Expand Down

0 comments on commit 13758ba

Please sign in to comment.