mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
* pre-commit: use local hooks * pre-commit: don't run dvc in parallel By default pre-commit will try to run hooks in parallel, which results in some dvc instances failing to acquire repo locks. Fixes #3751
37 lines
631 B
YAML
37 lines
631 B
YAML
- args:
|
|
- git-hook
|
|
- pre-commit
|
|
entry: dvc
|
|
id: dvc-pre-commit
|
|
language: python
|
|
language_version: python3
|
|
name: DVC pre-commit
|
|
require_serial: true
|
|
stages:
|
|
- commit
|
|
verbose: true
|
|
- args:
|
|
- git-hook
|
|
- pre-push
|
|
entry: dvc
|
|
id: dvc-pre-push
|
|
language: python
|
|
language_version: python3
|
|
name: DVC pre-push
|
|
require_serial: true
|
|
stages:
|
|
- push
|
|
- always_run: true
|
|
args:
|
|
- git-hook
|
|
- post-checkout
|
|
entry: dvc
|
|
id: dvc-post-checkout
|
|
language: python
|
|
language_version: python3
|
|
minimum_pre_commit_version: 2.2.0
|
|
name: DVC post-checkout
|
|
require_serial: true
|
|
stages:
|
|
- post-checkout
|