Add ability to exclude files like black's extend-exclude
option
#181
Labels
duplicate
This issue or pull request already exists
maybe invalid?
Can't reproduce, or seems already fixed, or need more information
question
Further information is requested
Milestone
Short version: if I exclude files from being formatted with black's
extend-exclude
option in pyproject.toml, thendarker
should also not touch those files.Longer version:
Consider a repo with three files in it:
Now do a
git add *
andgit commit -m 'Initial commit'
, followed byblack .
andgit commit -a -m 'Reformatted with black'
. Now imagine that the time comes to add canine support to these files, so after making this obvious changes, you rundarker
before committing.Now look as what
git diff
says:Behold,
darker
has gone and reformatted the file calledDontReformatMe.py
, exactly as we toldblack
not to. (And indeed,black
won't touch the file if asked to reformat everything)The text was updated successfully, but these errors were encountered: