Skip to content

Add Go and Python code-quality checks - #65

Merged
hudsonaikins merged 1 commit into
mainfrom
codex/code-quality-profitctl-20260928
Sep 29, 2026
Merged

hudsonaikins merged 1 commit into
mainfrom
codex/code-quality-profitctl-20260928

Conversation

@hudsonaikins

Copy link
Copy Markdown
Contributor

This adds a local and pull-request check for ProfitCtl's Go and Python code, plus guidance to inspect cross-file dependencies with Graphify before removal.

Validation: bash scripts/check-dead-code.sh passes locally.

@hudsonaikins
hudsonaikins marked this pull request as ready for review September 29, 2026 02:29

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eee7b5d6e2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

py_files=()
while IFS= read -r -d '' file; do py_files+=("$file"); done < <(git ls-files --cached --others --exclude-standard -z -- '*.py')
if ((${#py_files[@]})); then uvx --from vulture==2.16 vulture "${py_files[@]}" --min-confidence 90; fi
go vet ./...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Detect unreferenced Go declarations

When a removal leaves a package-level Go function or method with no callers, this line still exits successfully: go vet has no unused-declaration analyzer (verified with a package containing only an unreferenced function). Consequently, the required cleanup check and its PR job permit the ordinary Go dead-code case they are intended to catch; add a declaration-aware Go analyzer or equivalent check.

AGENTS.md reference: AGENTS.md:L31-L33

Useful? React with 👍 / 👎.

@hudsonaikins
hudsonaikins merged commit 5998551 into main Sep 29, 2026
6 checks passed
@hudsonaikins
hudsonaikins deleted the codex/code-quality-profitctl-20260928 branch September 29, 2026 02:56
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