Ignore README in pre-commit rules (#17151)

This commit is contained in:
Adrian Wälchli 2023-03-21 15:54:54 +01:00 committed by GitHub
parent 3a900b5b5a
commit 629a515427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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