-
-
Notifications
You must be signed in to change notification settings - Fork 909
Closed
Description
I have this config:
panman master $ cat .pre-commit-config.yaml
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.6
And I've pip-installed the latest pre-commit 1.12.0 to the Python 3.7.1 environment, but when I run pre-commit, it fails thus:
panman master $ pre-commit run --all-files
black....................................................................Failed
hookid: black
Traceback (most recent call last):
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/bin/black", line 7, in <module>
from black import main
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/lib/python3.6/site-packages/black.py", line 41, in <module>
import toml
ModuleNotFoundError: No module named 'toml'
Traceback (most recent call last):
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/bin/black", line 7, in <module>
from black import main
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/lib/python3.6/site-packages/black.py", line 41, in <module>
import toml
ModuleNotFoundError: No module named 'toml'
Traceback (most recent call last):
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/bin/black", line 7, in <module>
from black import main
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/lib/python3.6/site-packages/black.py", line 41, in <module>
import toml
ModuleNotFoundError: No module named 'toml'
Traceback (most recent call last):
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/bin/black", line 7, in <module>
from black import main
File "/Users/jaraco/.cache/pre-commit/repoogmwxpko/py_env-python3.6/lib/python3.6/site-packages/black.py", line 41, in <module>
import toml
ModuleNotFoundError: No module named 'toml'
What am I doing wrong?
Metadata
Metadata
Assignees
Labels
No labels