Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix yamllint + remove prettier pre-commit #32

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading