Skip to content

Commit aa99deb

Browse files
committed
fix: update precommit python and fix yamllint
1 parent d42898d commit aa99deb

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44

55
jobs:
66
pre_commit:
7-
runs-on: ubuntu-latest
7+
runs-on: self-hosted
88
strategy:
99
matrix:
1010
python-version:
11-
- "3.10"
11+
- "3.12"
1212
steps:
1313
- name: Check out the repo
1414
uses: actions/checkout@v2

.pre-commit-config.yaml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_install_hook_types:
55

66
repos:
77
- repo: https://github.com/compilerla/conventional-pre-commit
8-
rev: v4.2.0
8+
rev: v4.0.0
99
hooks:
1010
- id: conventional-pre-commit
1111
stages:
@@ -19,7 +19,7 @@ repos:
1919
stages:
2020
- commit-msg
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v6.0.0
22+
rev: v5.0.0
2323
hooks:
2424
- id: end-of-file-fixer
2525
stages:
@@ -51,25 +51,18 @@ repos:
5151
- "--unsafe"
5252
- id: debug-statements
5353
- repo: https://github.com/psf/black
54-
rev: 25.9.0
54+
rev: 25.1.0
5555
hooks:
5656
- id: black
5757
stages:
5858
- manual
5959
- repo: https://github.com/adrienverge/yamllint.git
60-
rev: v1.37.1
60+
rev: v1.35.1
6161
hooks:
6262
- id: yamllint
6363
stages:
6464
- manual
6565
args:
66-
- "-c"
67-
- ".yamllint"
68-
- repo: https://github.com/ansible-community/ansible-lint
69-
rev: v25.9.2
70-
hooks:
71-
- id: ansible-lint
72-
stages:
73-
- manual
74-
additional_dependencies:
75-
- ansible
66+
- >-
67+
-d {extends: default, rules: {line-length: disable},
68+
ignore: [submodules/]}

.yamllint

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
---
22
extends: default
3-
43
rules:
54
indentation:
65
spaces: 2
76
line-length: disable
87
comments:
98
min-spaces-from-content: 1
10-
comments-indentation: disable
11-
braces:
12-
max-spaces-inside: 1
13-
octal-values:
14-
forbid-implicit-octal: true
15-
forbid-explicit-octal: true
9+
brackets:
10+
forbid: non-empty
11+
new-line-at-end-of-file: enable

0 commit comments

Comments
 (0)