-
Notifications
You must be signed in to change notification settings - Fork 56
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
Incompatible with black-22.10.1.dev19+gffaaf48
and later
#403
Comments
Any chance on a darker release in near future including fix for this issue? (thanks for darker by the way, great tool, I use it all the time) |
An out-of-the-box pipx install of darker is also broken at the moment. Workaround is to use pipx inject to downgrade black:
|
@soxofaan, thanks for appreciation! Darker 1.6.0 with a fix for this has now been released. |
Describe the bug
Unit tests fail if psf/black@ffaaf48 or later is installed.
To Reproduce
Steps to reproduce the behavior:
pip install 'darker[test]==1.5.1' git+https://github.com/psf/black.git@ffaaf48
darker
Expected behavior
Darker should run successfully and reformat modified regions of Python fules.
Screenshots
Environment (please complete the following information):
ffaaf48
Additional context
psf/black@ffaaf48 replaces the
gitignore: Optional[PathSpec]
argument ofblack.files.gen_python_files()
withgitignore_dict: Optional[Dict[Path, PathSpec]]
.Before that commit,
gitignore
is used like:And after the commit,
gitignore_dict
like:The text was updated successfully, but these errors were encountered: