From ec4b8e665ee9fb2c26c7c8fb80d7bee1b65d3d0c Mon Sep 17 00:00:00 2001 From: lduchosal Date: Mon, 11 May 2026 23:57:07 +0200 Subject: [PATCH] fix(ci): accept docformatter exit code 3 in publish.sh 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) --- .gitignore | 1 + publish.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 39ef958..cffd6ff 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ __pycache__/ /interrogate_badge.svg /protocol.yml /*.pid +.ken diff --git a/publish.sh b/publish.sh index 77bb2a6..aaa77a4 100755 --- a/publish.sh +++ b/publish.sh @@ -133,7 +133,14 @@ print_step "Sorting Imports (isort)" run_command "pdm run isort" "Import sorting" print_step "Docstring Formatting (docformatter)" -run_command "pdm run docformatter" "Docstring formatting" +echo "${YELLOW}→ Running: pdm run docformatter${NC}" +pdm run docformatter +rc=$? +if [ $rc -eq 0 ] || [ $rc -eq 3 ]; then + print_success "Docstring formatting completed successfully" +else + print_error "Docstring formatting failed" +fi print_step "Code Formatting (black)" run_command "pdm run format" "Code formatting"