From a8e046790a8eb037cdbae6c53f1ce084cbe11602 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 29 Oct 2024 21:42:19 +0300 Subject: [PATCH 1/3] Lint github actions and dependabot.yml Taken from https://github.com/python/cpython/commit/dcda92f8fcfa70ef48935db0dc468734de897d96 --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4efed772396e..aedb1c92e3e0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,5 +15,18 @@ 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=1st argument of function call is not assignable, + # -ignore=SC2(015|038|086|091|097|098|129|155), + ] ci: autoupdate_schedule: quarterly From b01fe13d57e373332695d11f0bef0410104faa07 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 29 Oct 2024 22:05:38 +0300 Subject: [PATCH 2/3] Fix CI --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aedb1c92e3e0..496ae5ce74f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,8 +25,8 @@ repos: hooks: - id: actionlint args: [ - # -ignore=1st argument of function call is not assignable, - # -ignore=SC2(015|038|086|091|097|098|129|155), + -ignore='property "debug_build" is not defined', + -ignore='property "allow_failure" is not defined', ] ci: autoupdate_schedule: quarterly From 974d83598fb0f2360d1bdc9cb83be80d64f57bc4 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Tue, 29 Oct 2024 22:10:35 +0300 Subject: [PATCH 3/3] Fix CI --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 496ae5ce74f4..27e3e65efdf4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,8 +25,9 @@ repos: hooks: - id: actionlint args: [ - -ignore='property "debug_build" is not defined', - -ignore='property "allow_failure" is not defined', + -ignore=property "debug_build" is not defined, + -ignore=property "allow_failure" is not defined, + -ignore=SC2(046|086), ] ci: autoupdate_schedule: quarterly