diff options
| author | 2020-03-09 23:04:30 -0700 | |
|---|---|---|
| committer | 2020-03-09 23:04:30 -0700 | |
| commit | f6ed0362300227c35477f4a01263b496464f9d2d (patch) | |
| tree | 46355fc67d6f82838080a230d007125ac8449291 | |
| parent | CI: install pipenv to user site (diff) | |
CI: don't do a user install for pre-commit venv
Prevents the following error:
Can not perform a '--user' install. User site-packages are not visible
in this virtualenv.
| -rw-r--r-- | azure-pipelines.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9660b2621..3557410c6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -71,7 +71,8 @@ jobs: pre-commit | "$(PythonVersion.pythonLocation)" | 0 path: $(PRE_COMMIT_HOME) - - script: pre-commit run --all-files + # pre-commit's venv doesn't allow user installs - not that they're really needed anyway. + - script: export PIP_USER=0; pre-commit run --all-files displayName: 'Run pre-commit hooks' - script: coverage run -m xmlrunner |