diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df1baee..150be26 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: reformat-pyproject - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -62,7 +62,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/asottile/pyupgrade - rev: v2.12.0 + rev: v3.19.1 hooks: - id: pyupgrade args: @@ -70,7 +70,7 @@ repos: - --keep-runtime-typing - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.5.1 + rev: v1.5.5 hooks: - id: remove-crlf - id: forbid-crlf diff --git a/coincidence/utils.py b/coincidence/utils.py index 941f3bb..5e689ef 100644 --- a/coincidence/utils.py +++ b/coincidence/utils.py @@ -117,21 +117,17 @@ def with_fixed_datetime(fixed_datetime: datetime.datetime) -> Iterator: with pytest.MonkeyPatch.context() as monkeypatch: monkeypatch.setattr( datetime.date, - "today", - lambda *args: datetime.date( + "today", lambda *args: datetime.date( fixed_datetime.year, fixed_datetime.month, - fixed_datetime.day, - ) + fixed_datetime.day, ) ) monkeypatch.setattr( datetime.datetime, - "today", - lambda *args: datetime.datetime( + "today", lambda *args: datetime.datetime( fixed_datetime.year, fixed_datetime.month, - fixed_datetime.day, - ) + fixed_datetime.day, ) ) monkeypatch.setattr(datetime.datetime, "now", lambda *args: fixed_datetime)