Skip to content

fix(ci): accept docformatter exit code 3 in publish.sh#1

Merged
lduchosal merged 1 commit into
mainfrom
fix/docformatter-exit-3
May 11, 2026
Merged

fix(ci): accept docformatter exit code 3 in publish.sh#1
lduchosal merged 1 commit into
mainfrom
fix/docformatter-exit-3

Conversation

@lduchosal
Copy link
Copy Markdown
Owner

Summary

  • docformatter 1.7.8 with in-place = true exits 3 when it reformats files; previous versions exited 0. The generic run_command wrapper in publish.sh treats any non-zero exit as failure, so step 8/24 (Docstring Formatting) aborts the publish workflow — see run 25668514928.
  • Inline the docformatter invocation in publish.sh so exit codes 0 and 3 are both treated as success. All other lint/format steps continue to use run_command unchanged.
  • Also gitignore .ken (kenboard CLI config; contains an API token).

Test plan

  • Local: pdm run docformatter on unformatted tree → exit 3, files reformatted in-place, patched wrapper reports success
  • Local: pdm run docformatter on already-formatted tree → exit 0, patched wrapper reports success
  • CI: next scheduled / dispatched Publish Package run completes step 8/24

🤖 Generated with Claude Code

docformatter 1.7.8 with in-place=true exits 3 when it reformats files,
which the generic run_command wrapper treated as failure and aborted
step 8/24. Inline the docformatter step so exit codes 0 and 3 are both
treated as success.

Also gitignore .ken (kenboard CLI config with API token).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lduchosal lduchosal merged commit 43cf216 into main May 11, 2026
3 checks passed
@codecov-commenter
Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

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.

2 participants