Skip to content

Commit

Permalink
ci: add yamllint
Browse files Browse the repository at this point in the history
Change-Id: Ia9eb6ded1a73fb3d428d06719129de58e0ed50ef
  • Loading branch information
jd committed Dec 11, 2024
1 parent 2660aae commit ce9ab10
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
directory: /
schedule:
interval: daily
time: "09:00"
time: 09:00
timezone: Europe/Paris
open-pull-requests-limit: 10
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
time: "09:00"
time: 09:00
timezone: Europe/Paris
2 changes: 1 addition & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pull_request_rules:
- check-success = test (3.13)
- "#approved-reviews-by=0"
- "#changes-requested-reviews-by=0"
- "review-requested != @devs"
- review-requested != @devs
actions:
request_reviews:
teams:
Expand Down
22 changes: 22 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
extends: default
ignore: |
.git
spectral-lint/node_modules
zfixtures
.venv
rules:
document-start: disable
truthy: disable
comments:
level: error
# Buggy checks:
# https://github.com/adrienverge/yamllint/issues/375
# https://github.com/adrienverge/yamllint/issues/141
# https://github.com/adrienverge/yamllint/issues/384
comments-indentation: disable
line-length:
max: 110
quoted-strings:
quote-type: double
required: only-when-needed
allow-quoted-quotes: true
1 change: 1 addition & 0 deletions poe.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sequence = [
"mypy",
"codespell",
"semgrep --config=auto --error --timeout=15",
"yamllint .",
]

[tool.poe.tasks.setup]
Expand Down
31 changes: 30 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pytest = "^8.3.4"
poethepoet = "^0.31.1"
codespell = "^2.3.0"
semgrep = "^1.99.0"
yamllint = "^1.35.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit ce9ab10

Please sign in to comment.