ITPLT-3977 adding pre-commit build step

This commit is contained in:
Geoff Jacobs
2024-08-19 09:08:12 +10:00
parent 9b50436934
commit 67028a7eac

View File

@@ -11,12 +11,22 @@ options:
definitions: definitions:
caches: caches:
ansible-collections: ansible_collections ansible-collections: ansible_collections
pre-commit: ~/.cache/pre-commit
services: services:
docker: docker:
memory: 4096 memory: 4096
pipelines: pipelines:
default: default:
- step:
name: Pre-commit
image: python:3.9
caches:
- pre-commit
script:
- apt update && apt install -y pipenv
- pipenv sync --dev
- pre-commit run --all-files
- step: - step:
name: Pre Parallelization stage name: Pre Parallelization stage
script: script: