From 665d30e5bc0e6e24f2d9efbbfa992e2bd5bea792 Mon Sep 17 00:00:00 2001 From: SeanNaren Date: Tue, 31 Jan 2023 22:58:18 +0000 Subject: [PATCH 1/4] Attempt to use large-file pre-commit ci hook Signed-off-by: SeanNaren --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bddd9abc3b47..e5535a176790 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,8 @@ repos: - id: check-yaml - id: check-case-conflict - id: detect-private-key + - id: check-added-large-files + args: ['--maxkb=5'] - id: requirements-txt-fixer - repo: https://github.com/PyCQA/isort From 6085c250c18866f2f2bae8ce5286b71123a13584 Mon Sep 17 00:00:00 2001 From: SeanNaren Date: Tue, 31 Jan 2023 23:01:11 +0000 Subject: [PATCH 2/4] Set defaults and enforce Signed-off-by: SeanNaren --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5535a176790..333c1b07fa67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: check-case-conflict - id: detect-private-key - id: check-added-large-files - args: ['--maxkb=5'] + args: ['--maxkb=350', '--enforce-all'] - id: requirements-txt-fixer - repo: https://github.com/PyCQA/isort From d4c2880f0b67603680e4076193fee9d9abaa431f Mon Sep 17 00:00:00 2001 From: SeanNaren Date: Tue, 31 Jan 2023 23:05:45 +0000 Subject: [PATCH 3/4] Set to 1000 Signed-off-by: SeanNaren --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 333c1b07fa67..b82831199e17 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: check-case-conflict - id: detect-private-key - id: check-added-large-files - args: ['--maxkb=350', '--enforce-all'] + args: ['--maxkb=1000', '--enforce-all'] - id: requirements-txt-fixer - repo: https://github.com/PyCQA/isort From e7d5176e4b65d147fb32fce0a9b3e2e66823f079 Mon Sep 17 00:00:00 2001 From: SeanNaren Date: Tue, 31 Jan 2023 23:36:14 +0000 Subject: [PATCH 4/4] Remove enforcement Signed-off-by: SeanNaren --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b82831199e17..11def93ec0a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,7 +28,7 @@ repos: - id: check-case-conflict - id: detect-private-key - id: check-added-large-files - args: ['--maxkb=1000', '--enforce-all'] + args: ['--maxkb=1000'] - id: requirements-txt-fixer - repo: https://github.com/PyCQA/isort