-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
No configuration used for paths after the first #4461
Comments
This appears to be by design. From https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#where-black-looks-for-the-file
The common parent of
So if you run As for how to get black to use your config, either create a
|
Hi team, I’ve reviewed the issue and understand that Black currently only recognizes configurations from the common base directory when multiple paths are passed, which seems to be by design. However, I’d like to propose an enhancement to improve usability in multi-project setups. Proposed Solution: Alternatively, if adding this feature doesn’t align with Black’s design philosophy, I’d be happy to contribute to the documentation. I can provide clear guidelines on how Black handles configurations with multiple paths and offer best practices for users running Black on several projects. Approach: Please assign me this issue to work upon if possible. |
Describe the bug
Black configurations are seemingly not taken into account for any paths after the first one passed to CLI - I'm seeing this in particular for "line-length" but have no reason to expect the behaviour is specifically related to that option.
Specifically this prevents me from running black on multiple projects in one command. Perhaps this is by design.
To Reproduce
Black version
Project setup
Actual behaviour
(running commands from inside proj1)
Expected behavior
Either one of the configurations would be taken into account, and I would be able to check both folders at once. (I don't mind which in my use case - these particular projects have identical tooling configurations.)
Environment
Thanks
The text was updated successfully, but these errors were encountered: