Skip to content

Commit

Permalink
ci: [pre-commit.ci] pre-commit autoupdate (#1081)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/psf/black-pre-commit-mirror: 24.1.1 →
24.2.0](psf/black-pre-commit-mirror@24.1.1...24.2.0)
- [github.com/astral-sh/ruff-pre-commit: v0.2.1 →
v0.2.2](astral-sh/ruff-pre-commit@v0.2.1...v0.2.2)
- [github.com/asottile/pyupgrade: v3.15.0 →
v3.15.1](asottile/pyupgrade@v3.15.0...v3.15.1)
<!--pre-commit.ci end-->

---------

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 20, 2024
1 parent e82298f commit 370ab25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.1.1
rev: 24.2.0
hooks:
- id: black
pass_filenames: true
Expand All @@ -20,11 +20,11 @@ repos:
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.2.2
hooks:
- id: ruff
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand Down
2 changes: 1 addition & 1 deletion package/tests/test_PartSeg/test_common_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def question(*args, **kwargs):

@pytest.fixture()
def image(tmp_path):
data = np.random.random((10, 10, 2))
data = np.random.default_rng().uniform(size=(10, 10, 2))
return Image(data=data, image_spacing=(10, 10), axes_order="XYC", file_path=str(tmp_path / "test.tiff"))


Expand Down
3 changes: 2 additions & 1 deletion package/tests/test_PartSeg/test_common_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def __str__(self):
def _example_tiff_files(tmp_path):
for i in range(5):
ImageWriter.save(
Image(np.random.random((10, 10)), image_spacing=(1, 1), axes_order="XY"), tmp_path / f"img_{i}.tif"
Image(np.random.default_rng().uniform(size=(10, 10)), image_spacing=(1, 1), axes_order="XY"),
tmp_path / f"img_{i}.tif",
)


Expand Down

0 comments on commit 370ab25

Please sign in to comment.