Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ruff_cli's run method to return on each branch #7040

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

charliermarsh
Copy link
Member

Summary

I think the fallthrough here for some branches is a little confusing. Now each branch either runs a command that returns Result<ExitStatus>, or runs a command that returns Result<()> and then explicitly returns Ok(ExitStatus::SUCCESS).

@charliermarsh
Copy link
Member Author

@dhruvmanila - Do you find this clearer?

@charliermarsh charliermarsh added the internal An internal refactor or improvement label Sep 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

PR Check Results

Ecosystem

✅ ecosystem check detected no changes.

@charliermarsh charliermarsh merged commit 08e2467 into main Sep 1, 2023
@charliermarsh charliermarsh deleted the charlie/main branch September 1, 2023 13:15
Copy link
Member

@dhruvmanila dhruvmanila left a comment

Choose a reason for hiding this comment

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

Yeah, this is much clearer now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants