From c64b1d690bb44f11f5b0fe5f9b69ac8fa98aaff4 Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Thu, 9 Nov 2023 08:53:12 -0700 Subject: [PATCH] Add pre-commit CI config Adjust YAML whitespace for consistency with our other YAML files --- .pre-commit-config.yaml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0270e175..501e096c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,17 @@ +ci: + autoupdate_schedule: "monthly" # Like dependabot + autoupdate_commit_msg: "chore: update pre-commit hooks" + autofix_prs: false # Comment "pre-commit.ci autofix" on a PR to trigger + repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 - hooks: - - id: check-yaml - - id: trailing-whitespace - - id: check-toml - - id: check-json -- repo: https://github.com/psf/black - rev: 20.8b1 - hooks: - - id: black +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-yaml + - id: trailing-whitespace + - id: check-toml + - id: check-json +- repo: https://github.com/psf/black + rev: 20.8b1 + hooks: + - id: black