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

ci: add yamllint #4

Merged
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
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