Open jacobseiler opened 5 years ago
Is there a verbose
option for pre-commit
?
I am not sure I see why the [Errno 13] Permission denied:
is being generated - you should have write access to your own TMPDIR
.
The only StackOverflow thing that looks reasonable is this one: https://github.com/pre-commit/pre-commit/issues/413
Yeah I'm unsure if the issue is with pre-commit
, virtualenv
or with pip
itself. It's a tough thing to diagnose.
Howdy Y'all,
I'm trying to use the package pre-commit which runs a set of scripts or checking on every commit that you make. I am having issues with compatibility of Pip on OzStar.
Here are the steps I'm taking. If possible, could someone go to a repository that is Git-controlled on OzStar and attempt to follow these steps?
This installs the package as expected and everything is hunky dory.
This installs the hooks required.
To run,
pre-commit
requires a.pre-commit-config.yaml
file to tell it what checks it should run on every commit. Here is my.yaml
file that I am using.Basically, on every commit,
flake8
will run and check Pep8 compliance (#EllertIsHappy).At this point,
pre-commit
should be able to run. We can check this withThis is where I get the crash.
Because
pre-commit
is trying to boot up a Virtual Env using Pip, there is a permission problem. Normally, you would circumvent this using the--user
flag but since this command isn't being run by me in the command line, I can't add that flag!I have attempted to fix the issues by setting the
TMPDIR
environment variable to/fred/oz004/jseiler/pip_tmp/
but alas it is still yelling at me.Any insights would be welcome.