Skip to content

Fix formatter hook setup and InvalidPath initialization - #596

Open
x0Lazarus wants to merge 2 commits into
hukkin:masterfrom
x0Lazarus:ci/docformatter-python312
Open

x0Lazarus wants to merge 2 commits into
hukkin:masterfrom
x0Lazarus:ci/docformatter-python312

Conversation

@x0Lazarus

@x0Lazarus x0Lazarus commented Sep 18, 2026 •

Copy link
Copy Markdown

Run the pinned docformatter hook with Python 3.12 and initialize InvalidPath's base exception. These changes address the hook setup failure and flake8 B042.

The initializer correction comes from @meek2100's #563; only that small correction is included. Added regressions for positional and keyword construction, exception arguments, string rendering and pickle round trips. #595 includes this same CI prerequisite history.

Validation at 5f67710 on Windows / Python 3.12.14: all 12 configured hooks pass; the full packaged tox suite has 4,283 passed, 6 skipped, 100% coverage. The required README hook, documentation formatting and mypy with the configured Python 3.13/Linux target also pass.

Hosted pre-commit and documentation checks now pass at this revision. The full GitHub Actions test workflow still awaits maintainer approval.

Reuse the InvalidPath initializer correction proposed by @meek2100 in
hukkin#563 (head
9f35047). Only the return annotation
and super().__init__(path) call are reused; no --config feature changes.

Add regression coverage for positional and keyword construction,
exception arguments, string rendering and pickle round trips. This
resolves B042 and preserves the exception contract.
@x0Lazarus x0Lazarus changed the title Run the docformatter hook on Python 3.12 Fix formatter hook setup and InvalidPath initialization Sep 18, 2026
x0Lazarus added a commit to x0Lazarus/mdformat that referenced this pull request Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant