pre-commit: importlib-resources is not installed for python<3.7
This line does not install importlib-resources
for python<3.7.
https://github.com/pre-commit/pre-commit/blob/eecf3472ffa1ce8e8f4638956d319820d80bdf54/setup.py#L50
And this leads to exception ModuleNotFoundError: No module named 'importlib_resources'
later when pre-commit runs.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (8 by maintainers)
FWIW, I’m also seeing this issue:
Explicitly requiring
importlib-resources
inPipfile
resolved the issue for me:@asottile Oh great. Thanks for your prompt reply!