Skip to content

fix cometkiwi return type#63

Merged
tanhaow merged 2 commits intodevelopfrom
feature/fix-cometkiwi-return-type
Apr 1, 2026
Merged

fix cometkiwi return type#63
tanhaow merged 2 commits intodevelopfrom
feature/fix-cometkiwi-return-type

Conversation

@tanhaow
Copy link
Copy Markdown

@tanhaow tanhaow commented Apr 1, 2026

small fix: change cometkiti return type from list to a single value

@tanhaow tanhaow changed the title Update metrics.py fix cometkiwi return type Apr 1, 2026
@tanhaow tanhaow merged commit ee6641b into develop Apr 1, 2026
1 check passed
@tanhaow tanhaow deleted the feature/fix-cometkiwi-return-type branch April 1, 2026 17:07
Comment on lines +123 to +125
except (
KeyError
) as e: # download_model catches all exceptions and re-raises as KeyError
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If this odd formatting was introduced solely for the in-line comment, it would be better to move it within the except block

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If this changed was introduced by the ruff pre-commit hook, this is a reminder that you should look at all changes proposed by pre-commit hooks.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Assuming this was caused by ruff, given that this line was otherwise not changed, how did this by pass both the pre-commit hooks and GitHub Actions?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Assuming this was caused by ruff, given that this line was otherwise not changed, how did this by pass both the pre-commit hooks and GitHub Actions?

I was wondering that too. This change was indeed caused by ruff (uv run ruff format). Without modifying it, the CI of this PR failed. But how did it pass in the first place...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you have the pre-commit hooks set up locally? It sounds like it didn't run on that commit somehow.

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