Open emilio-desousa opened 1 year ago
Have you setup your venv using pyenv-virtualenv
as explained in the generated project README.md
?
It should enable your venv each time you cd
in your project folder, so that black
and other Python commands should be found.
By the way, the reason why they are not written as make
commands is to be able to run black
(or other tools) only on the modified files (thanks to pass_filenames=true
, which is the default value).
I'm labeling the issue as "documentation", because maybe this behavior should be better documented.
Problem
I have created a project from scratch and when I run the pre-commit hook, I got an error tells that
black command not found
Idea
Replace Black Isort and Lint by make commands