Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ ci:
autoupdate_commit_msg: "[pre-commit.ci] pre-commit suggestions"
autoupdate_schedule: quarterly
# submodules: true
# 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. The `pre-commit` GitHub Actions job still
# runs docformatter, so coverage isn't lost. Remove this once docformatter
# ships v1.7.8 (which drops the untokenize dep).
skip: [docformatter]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -36,11 +30,23 @@ repos:
args: []

- repo: https://github.com/PyCQA/docformatter
rev: v1.7.7
rev: v1.7.8
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: ["--in-place"]
# docformatter v1.7.8 disagrees with ruff-format on these files
# (blank lines after docstring-only function bodies, blank lines
# between module docstring and first class, and a multi-line
# string literal used as an `exec()` argument that docformatter
# incorrectly treats as a docstring). Exclude until upstream
# reconciles the conventions or the patterns are restructured.
exclude: |
(?x)^(
src/cachier/exporters/prometheus\.py|
tests/mongo_tests/clients\.py|
tests/test_varargs\.py
)$

- repo: https://github.com/executablebooks/mdformat
rev: 1.0.0
Expand Down
Loading