Skip to content

Commit

Permalink
Pin pre-commit docformatter hook
Browse files Browse the repository at this point in the history
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).

PyCQA/docformatter#293
  • Loading branch information
samuelhwilliams committed Oct 24, 2024
1 parent 5cc0770 commit ec698ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assessment_store/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ec698ec

Please sign in to comment.