From 9602f1db4b8a3f6b304e631848ccc9fb16790ebb Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Tue, 7 Feb 2023 23:43:07 +0100 Subject: [PATCH] Remove ssh.rst from private-key check (#29412) The ssh.rst contains a private key example (legitimately), so the file should be excluded from private key check. --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1ab4d95ac996..6499584074229 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -207,6 +207,7 @@ repos: exclude: ^airflow/_vendor/ - id: detect-private-key name: Detect if private key is added to the repository + exclude: ^docs/apache-airflow-providers-ssh/connections/ssh.rst$ - id: end-of-file-fixer name: Make sure that there is an empty line at the end exclude: ^airflow/_vendor/|^docs/apache-airflow/img/.*\.dot|^docs/apache-airflow/img/.*\.sha256