Skip to content

Commit 30ad992

Browse files
gencurrentclaude
andcommitted
ci: skip docformatter on pre-commit.ci
docformatter v1.7.7 transitively pulls untokenize, whose setup.py uses ast.Constant.s (removed in Python 3.12+) and fails to install on pre-commit.ci's runners. Skip the hook on pre-commit.ci until docformatter v1.7.8 ships (which drops the untokenize dep). The pre-commit GitHub Actions job still runs docformatter, so coverage of the hook isn't lost. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d1724f8 commit 30ad992

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ ci:
66
autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
77
autoupdate_schedule: quarterly
88
# submodules: true
9+
# docformatter v1.7.7 transitively pulls `untokenize`, whose setup.py
10+
# uses `ast.Constant.s` (removed in Python 3.12+) and fails to install
11+
# on pre-commit.ci's runners. The `pre-commit` GitHub Actions job still
12+
# runs docformatter, so coverage isn't lost. Remove this once docformatter
13+
# ships v1.7.8 (which drops the untokenize dep).
14+
skip: [docformatter]
915

1016
repos:
1117
- repo: https://github.com/pre-commit/pre-commit-hooks

0 commit comments

Comments
 (0)