Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 19, 2025
1 parent a8b4ace commit 20372c3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ repos:
- id: pyright
additional_dependencies:
- aiopg==1.4.0
- anyio==4.7.0
- anyio==4.8.0
- asgiref==3.8.1
- attrs==24.3.0
- contextlib2==21.6.0
- croniter==6.0.0
- django-stubs==5.1.1
- django-stubs==5.1.2
- django==5.1.5
- psycopg2-binary==2.9.10
- psycopg[pool]==3.2.3
- psycopg[pool]==3.2.4
- python-dateutil==2.9.0.post0
- sphinx==7.4.7
- sqlalchemy==2.0.36
- sqlalchemy==2.0.37
- typing-extensions==4.12.2
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.2
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ async def appender(a: int):
)
duration = time.time() - start_time

assert (
duration >= 0.5
), "processing jobs faster than expected. Is the concurrency respected?"
assert duration >= 0.5, (
"processing jobs faster than expected. Is the concurrency respected?"
)

assert len(results) == 100, "Unexpected number of job executions"

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/contrib/django/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def test_procrastinate_command():

def assert_no_action_named_args(parser):
for action in parser._actions:
assert getattr(action, "dest", "") != (
"args"
), f"'args' found in {parser.prog}\n{error}"
assert getattr(action, "dest", "") != ("args"), (
f"'args' found in {parser.prog}\n{error}"
)
if isinstance(action, argparse._SubParsersAction):
for subparser in action.choices.values():
assert_no_action_named_args(subparser)
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,9 @@ async def task_func(job_context: JobContext):

status = await app.job_manager.get_job_status_async(job_id)
assert status == Status.ABORTED
assert (
worker._job_ids_to_abort == {}
), "Expected cancelled job id to be removed from set"
assert worker._job_ids_to_abort == {}, (
"Expected cancelled job id to be removed from set"
)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 20372c3

Please sign in to comment.