Skip to content

merge: development -> main#6

Merged
forkni merged 6 commits into
mainfrom
development
May 27, 2026
Merged

merge: development -> main#6
forkni merged 6 commits into
mainfrom
development

Conversation

@forkni

@forkni forkni commented May 27, 2026

Copy link
Copy Markdown
Owner

Changes

  • 393b0b2 feat: add cgw_rev_count / cgw_remote_reachable / cgw_remote_branch_exists to _common.sh
  • fa06e8c docs: improve auto-git-workflow skill — thin runner command, verified harness, sync helper
  • 5548fff feat: auto-detect typechecker in configure.sh (pyrefly-first for Python)
  • e150941 feat: add CGW_TYPECHECK_CMD non-blocking typecheck step to pre-commit hook

Branch

development -> main

@forkni forkni requested a review from CharlieHelps May 27, 2026 03:34

@charliecreates charliecreates Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking feedback

  1. Empty CGW_TYPECHECK_CHECK_ARGS gets coerced to check, so pyright projects run pyright check (invalid) and always produce a false typecheck warning — scripts/git/_common.sh#L890

If you want me to push a fix, reply with item numbers (for example: please fix 1).

Comment thread scripts/git/_common.sh Outdated
run_tool_with_logging "TYPECHECK" "${logfile}" "${tc_bin}" ${stripped_args} "$@"
else
# shellcheck disable=SC2086 # Word splitting intentional: CGW_TYPECHECK_CHECK_ARGS/CGW_TYPECHECK_EXCLUDES contain multiple flags
run_tool_with_logging "TYPECHECK" "${logfile}" "${tc_bin}" ${CGW_TYPECHECK_CHECK_ARGS:-check} ${CGW_TYPECHECK_EXCLUDES:-}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CGW_TYPECHECK_CHECK_ARGS is intentionally set to an empty string for pyright in configure.sh, but this call uses ${CGW_TYPECHECK_CHECK_ARGS:-check}. The :- operator treats empty as unset, so pyright ends up running as pyright check, which is not a valid invocation. In practice this makes pyright-based projects show a non-blocking warning on every commit even when types are clean.

Suggested fix: preserve intentionally-empty args and only default when the variable is truly unset (for example ${CGW_TYPECHECK_CHECK_ARGS-check}), and apply the same change in the file-list branch above.

@forkni forkni merged commit e60f962 into main May 27, 2026
7 of 9 checks passed
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