Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.0 → v0.7.1](astral-sh/ruff-pre-commit@v0.7.0...v0.7.1)
- [github.com/renovatebot/pre-commit-hooks: 38.129.0 → 38.133.1](renovatebot/pre-commit-hooks@38.129.0...38.133.1)
- [github.com/gitleaks/gitleaks: v8.21.1 → v8.21.2](gitleaks/gitleaks@v8.21.1...v8.21.2)
- [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](pre-commit/mirrors-mypy@v1.12.1...v1.13.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 29, 2024
1 parent ff20d36 commit 7e04675
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ repos:
- id: detect-secrets

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.7.1
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.129.0
rev: 38.133.1
hooks:
- id: renovate-config-validator

- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.1
rev: v8.21.2
hooks:
- id: gitleaks

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.12.1
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies: ["types-PyYAML"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def test_pod_containers_not_restarted(self, first_predictor_pod):
assert not restarted_containers, f"Containers {restarted_containers} restarted"

def test_isvc_read_only_annotation_not_set_by_default(self, inference_service):
assert not inference_service.instance.metadata.annotations.get(
"storage.kserve.io/readonly"
), "Read only annotation is set"
assert not inference_service.instance.metadata.annotations.get("storage.kserve.io/readonly"), (
"Read only annotation is set"
)

def test_isvc_read_only_annotation_default_value(self, first_predictor_pod):
with pytest.raises(ExecOnPodError):
Expand Down

0 comments on commit 7e04675

Please sign in to comment.