-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
C: file collectionRelated to file collection (e.g. gitignore & cache) or file discovery and all of its configuration.Related to file collection (e.g. gitignore & cache) or file discovery and all of its configuration.T: bugSomething isn't workingSomething isn't working
Description
Describe the bug
When adding more than one source entry, black ignores the .gitignore entries.
To Reproduce
content of .gitignore
generated/*
Running
black test src
produces
$ black --check tests src
would reformat generated/jtd/__init__.py
Oh no! 💥 💔 💥
1 file would be reformatted, 29 files would be left unchanged.
Running
black src
produces
$ black --check src
All done! ✨ 🍰 ✨
Expected behavior
$ black --check test src
All done! ✨ 🍰 ✨
Environment
- Black's version: 22.8.0
- OS and Python version: MacOS m1
Additional context
works with Black version: 22.6.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C: file collectionRelated to file collection (e.g. gitignore & cache) or file discovery and all of its configuration.Related to file collection (e.g. gitignore & cache) or file discovery and all of its configuration.T: bugSomething isn't workingSomething isn't working