Skip to content

Conversation

@ghinks
Copy link
Owner

@ghinks ghinks commented Oct 26, 2025

Summary

  • mark configuration error helper as non-returning and clean up sequence parsing types to satisfy mypy
  • tidy CLI parsing tests to follow linting rules and improve temporary file handling

Testing

  • poetry run ruff check .
  • poetry run mypy reviewtally/
  • poetry run pytest

https://chatgpt.com/codex/tasks/task_e_68fe764c25f88330bbae1323902520b3

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

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.

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +459 to +467
repositories = _parse_repositories(config.get("repositories"))

if org_name is None and not repositories:
error_msg = (
"Error: Provide an organization (--org) "
"or configure repositories."
)
print(error_msg) # noqa: T201
sys.exit(1)

Choose a reason for hiding this comment

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

P1 Badge Remove org requirement for cache management commands

The new validation always exits when neither an org nor repositories are provided, but cache-management flags (--clear-cache, --clear-expired-cache, --cache-stats) do not require repository context. Running review-tally --clear-cache will now hit this branch and exit with “Provide an organization …” before _handle_cache_operations can run, whereas the previous implementation allowed cache housekeeping without org arguments. The check should be conditional on the absence of cache operations so that cache commands remain usable without unrelated options.

Useful? React with 👍 / 👎.

@ghinks ghinks merged commit 2e6802c into main Oct 28, 2025
9 checks passed
@ghinks ghinks deleted the codex/add-configuration-file-support-for-review-tally-tmkr25 branch October 28, 2025 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants