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

Unify command line processing #1

Conversation

akaihola
Copy link

I touched on these ideas in my review for your pull request – couldn't help tinkering with the code myself after all. What do you think of these changes? Could we include them in your PR?

akaihola added 5 commits June 25, 2020 22:05
No need for a separate `config` parameter in
- `format_edited_parts()`
- `run_black()`
Other options are handled in parts of Black code base which are not
run when we call `format_str()` directly.
Override configuration file options first with command line options,
then translate the result into parameters for `FileMode()`. This
simplifies parameter handling a bit.
@CorreyL
Copy link
Owner

CorreyL commented Jun 25, 2020

Thanks for adding the unit tests in be2ddb5, didn't have time to do it myself, but I'm glad the core logic I added was running as expected based on these unit tests.

@CorreyL CorreyL self-requested a review June 25, 2020 23:24
Copy link
Owner

@CorreyL CorreyL left a comment

Choose a reason for hiding this comment

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

All these changes look great to me, thanks for taking the time to help me with this implementation @akaihola 👍

@CorreyL CorreyL merged commit 4a2567d into CorreyL:feature/black-command-line-args Jun 25, 2020
@akaihola akaihola deleted the feature/unify-command-line-processing branch June 26, 2020 08:18
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