Skip to content

Commit

Permalink
update ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Aug 16, 2024
1 parent fdec5d2 commit 236dad4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.6.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ ignore = [

[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"ARG005", # we need stub lambdas
"S101", # assert
"SIM300", # Yoda rocks in asserts
"PT005", # we always add underscores and explicit name
"PT011", # broad is fine
"TRY002", # stock exceptions are fine in tests
"EM101", # no need for exception msg hygiene in tests
"ARG005", # we need stub lambdas
"ASYNC109", # we use timeout only for parametrization
"S101", # assert
"SIM300", # Yoda rocks in asserts
"PT011", # broad is fine
"TRY002", # stock exceptions are fine in tests
"EM101", # no need for exception msg hygiene in tests
]


Expand Down
2 changes: 1 addition & 1 deletion tests/test_instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def f():
("stamina", 30, "stamina.retry_scheduled")
] == caplog.record_tuples

@pytest.mark.anyio()
@pytest.mark.anyio
async def test_async(self, caplog):
"""
Async retries are logged.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_structlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def f():
] == log_output


@pytest.mark.anyio()
@pytest.mark.anyio
async def test_decorator_async(log_output):
"""
Retries decorators log correct name / arguments.
Expand Down Expand Up @@ -98,7 +98,7 @@ def test_context_sync(log_output):
] == log_output


@pytest.mark.anyio()
@pytest.mark.anyio
async def test_context_async(log_output):
"""
Retries context blocks log correct name / arguments.
Expand Down

0 comments on commit 236dad4

Please sign in to comment.