Skip to content

chore(qa): split pipeline and add type checking#45432

Merged
tarekziade merged 4 commits intomainfrom
tarek-max-compl
Apr 24, 2026
Merged

chore(qa): split pipeline and add type checking#45432
tarekziade merged 4 commits intomainfrom
tarek-max-compl

Conversation

@tarekziade
Copy link
Copy Markdown
Collaborator

What does this PR do?

This patch adds the pipeline in our type checker, and also adds mccabe complexity in our Ruff linter with a 75 threshold for now.

To reduce complexity, logical blocks are now splitted into private functions to improve maintainability and readability.

@tarekziade tarekziade requested a review from ArthurZucker April 14, 2026 14:04
@tarekziade tarekziade self-assigned this Apr 14, 2026
@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=45432&sha=3eecdd

@tarekziade
Copy link
Copy Markdown
Collaborator Author

see #45458

@tarekziade tarekziade requested a review from Cyrilvallez April 20, 2026 09:56
Copy link
Copy Markdown
Member

@Cyrilvallez Cyrilvallez left a comment

Choose a reason for hiding this comment

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

Fine by me thanks! cc @Rocketknight1 as well before merging!

Copy link
Copy Markdown
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

Yes, looks good! I'm guessing the existing pipeline code triggered the complexity filter you're adding, which is why it has to be refactored in this PR? It's fine if so - that init was quite old and could definitely use the cleanup.

@tarekziade tarekziade added this pull request to the merge queue Apr 24, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 24, 2026
@tarekziade tarekziade added this pull request to the merge queue Apr 24, 2026
Merged via the queue into main with commit f0f456b Apr 24, 2026
29 checks passed
@tarekziade tarekziade deleted the tarek-max-compl branch April 24, 2026 13:08
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.

4 participants