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
Unable to enforce default_language_version to enforce python_venv #1370
Comments
if you're worried about the stability of virtualenv 20.x I'd suggest |
note also, |
So basically, by capping virtualenv version when I install, pre-commit I avoid being affected by this issue. Thanks, lucky me I am using tox, so very easy. I do not mind seeing python_venv feature being dropped, I suppose use of venv would become the norm, right? |
the other way, use of |
Avoids regression pypa/virtualenv#1740 from latest version of virtualenv. Fixes: pre-commit#1370
That error makes no sense if you're actually using virtualenv 20.0.10 🤔 |
I tried to use the documented
default_language_version
override feature in order to enforce use ofpython3 + venv
for creation of all virtualenvs but apparently this does not work as one would expect.https://github.com/pre-commit/pre-commit/search?q=python_venv&unscoped_q=python_venv
Is there a way to enforce this without having to touch each hook? In some repositories there lots of hooks defined.
Background
It seems that newer virtualenv releases stated to become more unstable, example pypa/virtualenv#1740
The text was updated successfully, but these errors were encountered: