From 629a515427dc25a4045ff5154aa2116c22cc3ce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Tue, 21 Mar 2023 15:54:54 +0100 Subject: [PATCH] Ignore README in pre-commit rules (#17151) --- .pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9041192b5..eae34622ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,6 +27,8 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + # ignoring Wills's wild changes + exclude: README.md - id: check-yaml - id: check-docstring-first - id: check-executables-have-shebangs @@ -99,7 +101,8 @@ repos: (?x)^( src/lightning/app/CHANGELOG.md| src/lightning/fabric/CHANGELOG.md| - src/lightning/pytorch/CHANGELOG.md + src/lightning/pytorch/CHANGELOG.md| + README.md )$ - repo: https://github.com/charliermarsh/ruff-pre-commit