-
black normal respects .gitignore it seems that with darker this is not the case, isn't it? How to exclude files? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
In #171 and #215 we added some support for respecting Black exclusions. But apparently Thanks for the report, I'll try to reproduce, and this needs to be fixed for sure. |
Beta Was this translation helpful? Give feedback.
-
Ok, I can't reproduce this on Darker 1.3.2. If I create the file a = 2
b = 5 and run --- darker/ignored_file.py 2022-02-06 17:30:51.041694 +0000
+++ darker/ignored_file.py 2022-02-06 17:31:14.314713 +0000
@@ -1,2 +1,2 @@
a = 2
-b = 5
+b = 5 If I then add Does this differ from the behavior on your system @jedie? |
Beta Was this translation helpful? Give feedback.
-
Currently i have the same troubles with darker 1.7.2 (and black==23.7.0) Now i have a project with a test project using docker compose. The problem: I add "volumes" direct in the root of the project. The
For debuggin i add a darker/src/darker/black_diff.py Line 163 in e96018f Looks like:
So
I add a print into So i assume my Think the fix is very easy: Just call |
Beta Was this translation helpful? Give feedback.
In #171 and #215 we added some support for respecting Black exclusions. But apparently
.gitignore
was missed there?!?Thanks for the report, I'll try to reproduce, and this needs to be fixed for sure.