From 35967938d1566d688682caa7b12981eb8d45240f Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 29 Oct 2024 22:41:39 +0300 Subject: [PATCH] Lint github actions and dependabot.yml (#18069) Taken from https://github.com/python/cpython/commit/dcda92f8fcfa70ef48935db0dc468734de897d96 I temporarly disabled some checks due to https://github.com/python/mypy/pull/17822 --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4efed772396e..27e3e65efdf4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,5 +15,19 @@ repos: hooks: - id: ruff args: [--exit-non-zero-on-fix] + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.29.4 + hooks: + - id: check-dependabot + - id: check-github-workflows + - repo: https://github.com/rhysd/actionlint + rev: v1.7.3 + hooks: + - id: actionlint + args: [ + -ignore=property "debug_build" is not defined, + -ignore=property "allow_failure" is not defined, + -ignore=SC2(046|086), + ] ci: autoupdate_schedule: quarterly