From c433f3253c112b42fdb5c01a0dafbdb61b575611 Mon Sep 17 00:00:00 2001 From: Matias Mattamala Date: Thu, 4 Apr 2024 14:35:53 +0100 Subject: [PATCH] Add pre-commit for large files --- .pre-commit-config.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ff6efa3b..8db0a285 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,4 +21,9 @@ repos: files: \.ipynb$ stages: [commit] language: system - entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace \ No newline at end of file + entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 # Use the version you want + hooks: + - id: check-added-large-files + args: ["--maxkb=2000"] \ No newline at end of file