-
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
Black reformats entire virtual environment when named env
with pathspec==0.10.0
#3256
Comments
If you tell Black to format everything in a directory, it will; it can't magically determine that the folder contains a virtual env. We exclude a few common names for virtual envs by default, but Can you clarify what you think the bug is in |
Black doesn't actually include Are there situations where excluding |
|
in the virtual env folder
which I think will be recogonized by black right? in my case, if I upgrade pathspec to the bug is here: cpburnz/python-pathspec#62 |
cpburnz/python-pathspec#62 ahhh I see, sounds like we should ask upstream to yank this version since it might cause a lot of grief. |
The |
I've asked upstream to yank pathspec 0.10.0, let's see if they're open to it, otherwise, I'd be open to banning the faulty version on Black's end. |
env
with pathspec==0.10.0
And pathspec 0.10.0 has been yanked: https://pypi.org/project/pathspec/0.10.0/ |
Describe the bug
When using black and virtualenv, black try to reformat entire virtual env folder, which cause heavy process execution and hang very long.
To Reproduce
For example, take this code:
then black will try to check all the env folder.
this issue is caused by the library
pathspec 0.10.0
, and black does not lock the version, looks likepathspec
already fix the bug in0.10.1
.but for
black
, does it need to lock, or force skip this buggypathspec
version, to avoid this fatal errorThe text was updated successfully, but these errors were encountered: