From 04b715a176ac03a2429d2a0d50adc2fc0d214cbe Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Thu, 17 Aug 2023 08:55:40 -0700 Subject: [PATCH] Add config for pre-commit bot --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 464b85ce..09c67c4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,3 +46,12 @@ repos: language: system entry: python tools/generate_requirements.py files: "pyproject.toml|requirements/.*\\.txt|tools/generate_requirements.py" + +ci: + # This ensures that pr's aren't autofixed by the bot, rather you call + # the bot to make the fix + autofix_prs: false + autofix_commit_msg: | + '[pre-commit.ci 🤖] Apply code format tools to PR' + # Update hook versions every month (so we don't get hit with weekly update pr's) + autoupdate_schedule: monthly