From 03ee50780c29ec85a06e43a7a934665d943b61ff Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 24 Oct 2024 09:13:37 +0100 Subject: [PATCH] Pin pre-commit docformatter hook Pin docformatter to the current latest commit on master, because it is otherwise broken with this version of pre-commit (which runs in CI and so CI is failing). https://github.com/PyCQA/docformatter/issues/293 --- assessment_store/.pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assessment_store/.pre-commit-config.yaml b/assessment_store/.pre-commit-config.yaml index 9e6a7eff..7549736e 100644 --- a/assessment_store/.pre-commit-config.yaml +++ b/assessment_store/.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]