From d2b628194d441d5c19b50c49be0d80b2ae29f7ce Mon Sep 17 00:00:00 2001 From: Szymon Palucha Date: Mon, 7 Oct 2024 14:09:47 +0100 Subject: [PATCH] fix: use pre-commit < 4 * docformatter breaks pre-commit on version 4.0. Need to pin this until this issue is resolved: https://github.com/PyCQA/docformatter/issues/289 * in future when this is resolved also need to run `pre-commit migrate-config` --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6c78604d..4cf625f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,7 @@ typed = [ # version 2.31.0.3 introduced # overly strict typing of requests.HttpError # which was fixed in 2.31.0.6 + "types-requests", "types-cachetools", "types-regex", "types-psutil", @@ -90,13 +91,14 @@ dev = [ "mypy", "vulture", "bump2version", - "pre-commit", + # docformatter breaks pre-commit on version 4.0. Need to pin this until this issue is resolved: https://github.com/PyCQA/docformatter/issues/289 + "pre-commit<4.0.0", "pytest", "pytest-mock", "pytest-cov", "pytest-timeout", "hypothesis", - "sphinx>=7.2,<8.0", # 8.0.0 breaks our docs at the moment + "sphinx>=7.2,<8.0", # 8.0.0 breaks our docs at the moment "myst_parser", "furo>=2023.08.17", # to allow profiling