Repository navigation
Conversation
Pull Request Test Coverage Report for Build 939
💛 - Coveralls |
1 similar comment
Pull Request Test Coverage Report for Build 939
💛 - Coveralls |
|
Passerby here, I want to voice that I wouldn’t like this change as a user. Unlikely flake8, Black actively modifies the checked code base (unless |
|
Thanks, that's a fair point. I'm trying to think of any Unix-like commands that modify without a path argument but coming up blank. At least pyupgrade `find . -name "*.py" -type f` |
|
I think at this point the tool is popular enough that @uranusjr has a point: existing users might be surprised. Another small point: invalid editor integration that uses a variable as the filename might cause unexpected files to be formatted that way. Consider: os.system(f"black {file}")If Thanks for your contribution @hugovk but we will have to pass on this change. |
I usually run Black on the current directory:
Similarly for Flake8, the other Python CLI tool I often run:
And Flake8 defaults to search in the current directory. This is the same:
I'd like to ask for Black to do the same:
Benefits: