diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 14e5240d..90d2ace6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,17 +19,17 @@ repos: hooks: - id: tox-toml-fmt - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.25.0" + rev: "v2.25.1" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.15.18" + rev: "v0.15.20" hooks: - id: ruff-format - id: ruff-check args: ["--fix", "--unsafe-fixes", "--exit-non-zero-on-fix"] - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.8.4" # Use the sha / tag you want to point at + rev: "v3.9.1" # Use the sha / tag you want to point at hooks: - id: prettier args: ["--print-width=120", "--prose-wrap=always"] diff --git a/tests/soft_rw/test_soft_rw_async.py b/tests/soft_rw/test_soft_rw_async.py index e292b022..b3311c14 100644 --- a/tests/soft_rw/test_soft_rw_async.py +++ b/tests/soft_rw/test_soft_rw_async.py @@ -15,7 +15,7 @@ from pathlib import Path -@pytest.fixture(autouse=True) # noqa: RUF076 +@pytest.fixture(autouse=True) def _clear_singletons() -> Generator[None]: SoftReadWriteLock._instances.clear() yield diff --git a/tests/soft_rw/test_soft_rw_sync.py b/tests/soft_rw/test_soft_rw_sync.py index a5ae9e18..510f4276 100644 --- a/tests/soft_rw/test_soft_rw_sync.py +++ b/tests/soft_rw/test_soft_rw_sync.py @@ -95,7 +95,7 @@ def _cleanup(processes: list[Process]) -> Generator[None]: proc.join(timeout=2) -@pytest.fixture(autouse=True) # noqa: RUF076 +@pytest.fixture(autouse=True) def _clear_singletons() -> Generator[None]: SoftReadWriteLock._instances.clear() yield diff --git a/tests/test_async_read_write.py b/tests/test_async_read_write.py index 409ebbe3..93560c7f 100644 --- a/tests/test_async_read_write.py +++ b/tests/test_async_read_write.py @@ -18,7 +18,7 @@ from pathlib import Path -@pytest.fixture(autouse=True) # noqa: RUF076 +@pytest.fixture(autouse=True) def _clear_singleton_cache() -> Generator[None]: ReadWriteLock._instances.clear() yield diff --git a/tests/test_read_write_unit.py b/tests/test_read_write_unit.py index 9f182de5..68843db2 100644 --- a/tests/test_read_write_unit.py +++ b/tests/test_read_write_unit.py @@ -28,7 +28,7 @@ from pytest_mock import MockerFixture -@pytest.fixture(autouse=True) # noqa: RUF076 +@pytest.fixture(autouse=True) def _clear_singleton_cache() -> Generator[None]: ReadWriteLock._instances.clear() yield