-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
pre-commit hook TypeError exception #1473
Comments
Could you also post an asciinema recording? |
Is it reproducible with the latest version/master? If not, it's unlikely for anybody to backport the fix. |
Looking at https://github.com/jazzband/pip-tools/blob/0b0daff/piptools/repositories/pypi.py#L173-L182, there's no |
Alright, this has been addressed here: https://github.com/jazzband/pip-tools/pull/1216/files#diff-4b833620e477ab6401e3b2c03d4ca7e34202a151a3e709dc31f6e7c885bda25fL164. |
@webknjaz Nice, thanks! |
Do you want to send a PR updating that example? |
Hi I have pre-commit installed globally via
brew
so it's usingpy3.9
.When I use the hook it I get an exception:
TypeError: make_requirement_preparer() got an unexpected keyword argument 'wheel_download_dir'
.Also worth noting that my current project (venv) is
py 3.8.X
.I also tried to install all parts in the same virtualenv so that
pre-commit
andpip-tools
execute from the same location and exactly the same python version.I believe this may be related to #1207 and possibly to #1326
Environment Versions
3.8.2
pip 21.2.4
5.3.1
Steps to replicate
pre-commit run --all-files
Expected result
According to the pre-commit config
I expect the same result as
pip-compile root.txt -output-file=compiled.txt
On top of that it seem to be broken for multiple files in subdirectory
if hook configuration is:
The expected result is same as
pip-compile app/requirements/base.txt app/requirements/dev.txt -output-file=compiled.txt
...
Actual result
The text was updated successfully, but these errors were encountered: