diff --git a/generators/app/templates/common/.pre-commit-config.yaml b/generators/app/templates/common/.pre-commit-config.yaml index 0605c80..b32f267 100644 --- a/generators/app/templates/common/.pre-commit-config.yaml +++ b/generators/app/templates/common/.pre-commit-config.yaml @@ -11,6 +11,8 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-json + - id: check-added-large-files + - repo: local hooks: - id: black @@ -61,3 +63,15 @@ repos: language: system stages: [ commit ] <% } -%> +<% if (includeDvc) { -%> + - id: dvc-pre-push + name: DVC pre-push + entry: dvc + args: + - git-hook + - pre-push + require_serial: true + verbose: true + language: system + stages: [push] +<% } -%>