ci(lint): add .pre-commit cache for pre-commit

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-08-23 02:32:35 -07:00
parent fbb3e052fe
commit 929bb756a8
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -5,6 +5,7 @@ cache:
# For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory # For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
- .pkg-cache - .pkg-cache
- .venv - .venv
- .pre-commit
variables: variables:
AUR_CONFIG: conf/config # Default MySQL config setup in before_script. AUR_CONFIG: conf/config # Default MySQL config setup in before_script.
@ -23,6 +24,7 @@ lint:
script: script:
# https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763 # https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763
- export SETUPTOOLS_USE_DISTUTILS=stdlib - export SETUPTOOLS_USE_DISTUTILS=stdlib
- export XDG_CACHE_HOME=.pre-commit
- pre-commit run -a - pre-commit run -a
test: test: