diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e6a7eff..7549736e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,10 @@ repos: name: Reorder Python imports (src, tests) args: ["--application-directories", "src"] - repo: https://github.com/PyCQA/docformatter - rev: v1.7.5 + # We are pinning a specific hash here because the current latest released version (v1.7.5) is + # incompatible with pre-commit v4+ + # issue: https://github.com/PyCQA/docformatter/issues/289 + rev: eb1df347edd128b30cd3368dddc3aa65edcfac38 hooks: - id: docformatter additional_dependencies: [tomli] diff --git a/requirements-dev.in b/requirements-dev.in index e4900fb1..6da98854 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -3,7 +3,7 @@ black deepdiff invoke pip-tools>=6.13.0 -pre-commit +pre-commit~=4.0.0 pytest pytest-env pytest-flask diff --git a/requirements-dev.txt b/requirements-dev.txt index d121c7f0..54cfae18 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -319,7 +319,7 @@ ply==3.11 # jsonpath-rw prance==23.6.21.0 # via -r requirements.txt -pre-commit==3.7.1 +pre-commit==4.0.1 # via -r requirements-dev.in psycopg2-binary==2.9.9 # via -r requirements.txt