Skip to content

Commit

Permalink
chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.5…
Browse files Browse the repository at this point in the history
….0 (#744)

* chore(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.5.0
* fix unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Florian Maas <[email protected]>
  • Loading branch information
renovate[bot] and fpgmaas authored Jun 29, 2024
1 parent 9232e4d commit 53185ad
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 @@ -10,7 +10,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.4.10"
rev: "v0.5.0"
hooks:
- id: ruff
args: [--exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ def test__exit_with_violations() -> None:
with pytest.raises(SystemExit) as e:
Core._exit(violations)

assert e.type == SystemExit
assert e.type is SystemExit
assert e.value.code == 1


def test__exit_without_violations() -> None:
with pytest.raises(SystemExit) as e:
Core._exit([])

assert e.type == SystemExit
assert e.type is SystemExit
assert e.value.code == 0


Expand Down

0 comments on commit 53185ad

Please sign in to comment.