Closed webknjaz closed 1 year ago
@webknjaz
After execution command python3.11 -m pip install pre-commit --user
, the following warning was received:
WARNING: The script pre-commit is installed in '/home/olenayefymenko/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Can I just ignore this warning?
In some recommendations, I found a solution: export PATH=$HOME/.local/bin:$PATH
But I should use this variant: export PATH=$PYENV_ROOT/bin:$PATH
for switching between versions
You can add the former to your zshrc file, additionally to the pyenv one. It prepends said path to the search paths. If not, you won't be able to invoke scripts installed in ~/.local/bin
by their names (like pre-commit
), though if they implement the runpy interface, you can still invoke (or import) them through the python interpreter (like python -m pre_commit
).
[x] I HAVE READ AND UNDERSTOOD THE RULES ABOVE
pre-commit
locally as follows:features/12-pre-commit-integration
.pre-commit-config.yaml
config, containing the following hooks:pylint
using "local" modepre-commit run --all-files
, fix all issues and commit fixes as well