From aa99debf299454889654d1495550e76f11e97f13 Mon Sep 17 00:00:00 2001 From: Chris Breu Date: Thu, 9 Oct 2025 10:59:31 -0500 Subject: [PATCH] fix: update precommit python and fix yamllint --- .github/workflows/pre-commit.yaml | 4 ++-- .pre-commit-config.yaml | 21 +++++++-------------- .yamllint | 10 +++------- 3 files changed, 12 insertions(+), 23 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e0d092b..d58c526 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -4,11 +4,11 @@ on: jobs: pre_commit: - runs-on: ubuntu-latest + runs-on: self-hosted strategy: matrix: python-version: - - "3.10" + - "3.12" steps: - name: Check out the repo uses: actions/checkout@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f929f1..93d3701 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_install_hook_types: repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v4.2.0 + rev: v4.0.0 hooks: - id: conventional-pre-commit stages: @@ -19,7 +19,7 @@ repos: stages: - commit-msg - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v6.0.0 + rev: v5.0.0 hooks: - id: end-of-file-fixer stages: @@ -51,25 +51,18 @@ repos: - "--unsafe" - id: debug-statements - repo: https://github.com/psf/black - rev: 25.9.0 + rev: 25.1.0 hooks: - id: black stages: - manual - repo: https://github.com/adrienverge/yamllint.git - rev: v1.37.1 + rev: v1.35.1 hooks: - id: yamllint stages: - manual args: - - "-c" - - ".yamllint" - - repo: https://github.com/ansible-community/ansible-lint - rev: v25.9.2 - hooks: - - id: ansible-lint - stages: - - manual - additional_dependencies: - - ansible + - >- + -d {extends: default, rules: {line-length: disable}, + ignore: [submodules/]} diff --git a/.yamllint b/.yamllint index bf4a9b0..bf4a850 100644 --- a/.yamllint +++ b/.yamllint @@ -1,15 +1,11 @@ --- extends: default - rules: indentation: spaces: 2 line-length: disable comments: min-spaces-from-content: 1 - comments-indentation: disable - braces: - max-spaces-inside: 1 - octal-values: - forbid-implicit-octal: true - forbid-explicit-octal: true + brackets: + forbid: non-empty + new-line-at-end-of-file: enable