Skip to content

Commit

Permalink
ci: [pre-commit.ci] pre-commit autoupdate (#1059)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.9 →
v0.1.13](astral-sh/ruff-pre-commit@v0.1.9...v0.1.13)
<!--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 Jan 22, 2024
1 parent 41ffcfe commit b003a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
- id: setup-cfg-fmt
args: ["--include-version-classifiers", "--max-py-version", "3.11"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.1.14
hooks:
- id: ruff
- repo: https://github.com/asottile/pyupgrade
Expand Down
4 changes: 2 additions & 2 deletions package/tests/test_PartSegCore/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def perform_roi_info_history_test(
alt2[alt2 > 0] = i + 5
roi_info2 = ROIInfo(
roi=project.roi_info.roi,
annotations={i: f"a{i}_{j}" for j in range(1, 5)},
annotations={j: f"a{i}_{j}" for j in range(1, 5)},
alternative={f"test{i}": alt2},
)
history.append(
Expand All @@ -257,7 +257,7 @@ def perform_roi_info_history_test(
assert set(roi_info3.alternative) == {f"test{i}"}
assert np.all(roi_info3.alternative[f"test{i}"][alt1 > 0] == i + 5)
assert np.all(roi_info3.alternative[f"test{i}"][alt1 == 0] == 0)
assert roi_info3.annotations == {i: f"a{i}_{j}" for j in range(1, 5)}
assert roi_info3.annotations == {j: f"a{i}_{j}" for j in range(1, 5)}
assert proj2.history[i].roi_extraction_parameters == {"algorithm_name": f"task_{i}", "values": {"a": 1}}


Expand Down

0 comments on commit b003a95

Please sign in to comment.