From 9510138a7cdd9930b37ac308382625482cb04ad9 Mon Sep 17 00:00:00 2001 From: Thiago Perrotta Date: Wed, 22 Oct 2025 22:45:08 +0200 Subject: [PATCH] ci(pre-commit): add yamllint (#496) --- .github/FUNDING.yaml | 2 +- .pre-commit-config.yaml | 5 ++++- .yamllint.yaml | 3 +++ tests/testdata/John_Doe_CV.yaml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .yamllint.yaml diff --git a/.github/FUNDING.yaml b/.github/FUNDING.yaml index 4552d4bb..ecc12cc7 100644 --- a/.github/FUNDING.yaml +++ b/.github/FUNDING.yaml @@ -1 +1 @@ -ko_fi: atalays \ No newline at end of file +ko_fi: atalays diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00fe25a5..c5dcd71d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,9 +2,12 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.11.2 hooks: - # Run the linter. - id: ruff - repo: https://github.com/codespell-project/codespell rev: v2.4.1 hooks: - id: codespell + - repo: https://github.com/adrienverge/yamllint + rev: v1.37.1 + hooks: + - id: yamllint diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 00000000..d1e02709 --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,3 @@ +extends: default +rules: + line-length: disable diff --git a/tests/testdata/John_Doe_CV.yaml b/tests/testdata/John_Doe_CV.yaml index 90321184..9c5f53db 100644 --- a/tests/testdata/John_Doe_CV.yaml +++ b/tests/testdata/John_Doe_CV.yaml @@ -2,4 +2,4 @@ cv: name: John Doe sections: test_section: - - this is a text entry. + - this is a text entry.