Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Dec 3, 2023
1 parent 76db307 commit 0028d34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ indent-style = "space"
"D", # Everything from the pydocstyle
"INP001", # File {filename} is part of an implicit namespace package, add an __init__.py
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"T20", # flake8-print
"S101", # Use of assert detected
"T20", # flake8-print
"TRY301", # Abstract `raise` to an inner function
]

[tool.ruff.lint.flake8-quotes]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_actor_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def main() -> None:

# Test that exception is logged with the traceback
try:
raise ValueError('Dummy ValueError') # noqa: TRY301
raise ValueError('Dummy ValueError')
except Exception:
Actor.log.exception('Exception message')

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/actor/test_actor_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def test_actor_log(self: TestActorLog, caplog: pytest.LogCaptureFixture) -

# Test that exception is logged with the traceback
try:
raise ValueError('Dummy ValueError') # noqa: TRY301
raise ValueError('Dummy ValueError')
except Exception:
Actor.log.exception('Exception message')

Expand Down

0 comments on commit 0028d34

Please sign in to comment.