From 7df63ffd209e22e126945f3a47c75b682bb8c4ad Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Thu, 29 Dec 2022 17:13:08 -0800 Subject: [PATCH] ci: add support for pre-commit.ci --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a0aeff7a..d5b0c2d9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,10 @@ repos: - id: debug-statements - id: check-toml - id: check-json + exclude: > + (?x)^( + .vscode/settings.json + )$ # This one is slow and doesn't check for much # - detect-private-key # This is very slow, so I recommend disabling it. @@ -82,3 +86,14 @@ repos: # language: system # pass_filenames: false # always_run: true +ci: + autofix_commit_msg: | + style: auto fixes from pre-commit.com hooks + + for more information, see https://pre-commit.ci + autofix_prs: true + autoupdate_branch: "" + autoupdate_commit_msg: "build: pre-commit autoupdate" + autoupdate_schedule: weekly + skip: [] + submodules: false