Skip to content

Commit

Permalink
fix yamllint + remove prettier pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisx8 committed Dec 11, 2024
1 parent ae76f5f commit 3fc3abd
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
interval: daily
- package-ecosystem: npm
directory: /
schedule:
interval: "daily"
interval: daily
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ repos:
- id: detect-private-key
- id: destroyed-symlinks
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/ansible-community/ansible-lint
rev: v24.10.0
rev: v24.12.0
hooks:
- id: ansible-lint
args:
Expand Down
16 changes: 15 additions & 1 deletion .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,36 @@
extends: default

rules:
anchors:
forbid-undeclared-aliases: true
forbid-duplicated-anchors: true
forbid-unused-anchors: true
braces:
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
brackets:
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
comments:
min-spaces-from-content: 1
comments-indentation: false
document-start:
level: error
empty-lines:
max: 1
line-length:
max: 120
octal-values:
forbid-explicit-octal: true
forbid-implicit-octal: true
quoted-strings:
quote-type: double
required: only-when-needed
truthy:
level: error

yaml-files:
- "*.yaml"
- "*.yml"
- ".yamllint"
- .yamllint

0 comments on commit 3fc3abd

Please sign in to comment.