From 111287b4f9174560da377ed2f81ef9bb3447a321 Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Thu, 10 Jun 2021 16:45:54 +0200 Subject: [PATCH] add pre-commit hooks (#7906) --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b878b4e750..432f782b5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,19 @@ repos: - id: check-docstring-first - id: check-executables-have-shebangs - id: check-toml + - id: check-case-conflict + - id: check-added-large-files + args: ['--maxkb=350', '--enforce-all'] + exclude: | + (?x)^( + docs/source/_static/images/general/fast_2.gif| + docs/source/_static/images/mnist_imgs/pt_to_pl.jpg| + docs/source/_static/images/lightning_module/pt_to_pl.png| + docs/source/_static/images/general/pl_quick_start_full_compressed.gif| + docs/source/_static/images/general/pl_overview_flat.jpg| + docs/source/_static/images/general/pl_overview.gif + )$ + - id: detect-private-key - repo: https://github.com/PyCQA/isort rev: 5.8.0