Skip to content

Commit f2dc39f

Browse files
committed
chore: add yaml linter
- Add a yamllint based Docker image for running the yaml linter - Add workflow to lint YAML files in pull requests - Create a minimal starting configuration for the yaml linter - Update all yaml files to pass the linter
1 parent 0b1a998 commit f2dc39f

28 files changed

+193
-123
lines changed

.github/actions/setup-compose/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: "Setup Docker Compose"
2-
description: "Installs latest Docker Compose"
1+
name: Setup Docker Compose
2+
description: Installs latest Docker Compose
33
runs:
4-
using: "composite"
4+
using: composite
55
steps:
66
- name: Set up Docker Compose
77
uses: docker/setup-compose-action@v1

.github/workflows/a2a.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: A2A CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/a2a.yaml'
7-
- 'a2a/**'
6+
- .github/workflows/a2a.yaml
7+
- a2a/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/a2a.yaml'
13-
- 'a2a/**'
12+
- .github/workflows/a2a.yaml
13+
- a2a/**
1414

1515
permissions:
1616
contents: read

.github/workflows/adk-cerebras.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: ADK-CEREBRAS CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/adk-cerebras.yaml'
7-
- 'adk-cerebras/**'
6+
- .github/workflows/adk-cerebras.yaml
7+
- adk-cerebras/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/adk-cerebras.yaml'
13-
- 'adk-cerebras/**'
12+
- .github/workflows/adk-cerebras.yaml
13+
- adk-cerebras/**
1414

1515
permissions:
1616
contents: read
@@ -38,6 +38,3 @@ jobs:
3838

3939
- name: Check lint
4040
run: uv run ruff check
41-
42-
#- name: Check types
43-
# run: uv run pyright

.github/workflows/adk.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: ADK CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/adk.yaml'
7-
- 'adk/**'
6+
- .github/workflows/adk.yaml
7+
- adk/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/adk.yaml'
13-
- 'adk/**'
12+
- .github/workflows/adk.yaml
13+
- adk/**
1414

1515
permissions:
1616
contents: read

.github/workflows/agno.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Agno CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/agno.yaml'
7-
- 'agno/**'
6+
- .github/workflows/agno.yaml
7+
- agno/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/agno.yaml'
13-
- 'agno/**'
12+
- .github/workflows/agno.yaml
13+
- agno/**
1414

1515
permissions:
1616
contents: read

.github/workflows/crew-ai.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: Crew AI CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/crew-ai.yaml'
7-
- 'crew-ai/**'
6+
- .github/workflows/crew-ai.yaml
7+
- crew-ai/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/crew-ai.yaml'
13-
- 'crew-ai/**'
12+
- .github/workflows/crew-ai.yaml
13+
- crew-ai/**
1414

1515
permissions:
1616
contents: read
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Check format
3838
run: poetry run ruff format --check
39-
39+
4040
- name: Check lint
4141
run: poetry run ruff check
4242

.github/workflows/langgraph.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ name: LangGraph CI
33
on:
44
push:
55
paths:
6-
- '.github/workflows/langgraph.yaml'
7-
- 'langgraph/**'
6+
- .github/workflows/langgraph.yaml
7+
- langgraph/**
88
branches:
99
- main
1010
pull_request:
1111
paths:
12-
- '.github/workflows/langgraph.yaml'
13-
- 'langgraph/**'
12+
- .github/workflows/langgraph.yaml
13+
- langgraph/**
1414

1515
permissions:
1616
contents: read

.github/workflows/markdownlint.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# .github/workflows/markdownlint.yml
2-
name: Lint
2+
name: Lint Markdown
33

44
on:
55
push:
66
paths:
7-
- '**/*.md'
8-
- '.github/workflows/markdownlint.yaml'
7+
- "**/*.md"
8+
- .github/workflows/markdownlint.yaml
99
branches:
1010
- main
1111
pull_request:
1212
paths:
13-
- '**/*.md'
14-
- '.github/workflows/markdownlint.yaml'
13+
- "**/*.md"
14+
- .github/workflows/markdownlint.yaml
1515

1616
permissions:
1717
contents: read

.github/workflows/yamllint.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# .github/workflows/yamllint.yml
2+
name: Lint YAML
3+
4+
on:
5+
push:
6+
paths:
7+
- "**/*.yaml"
8+
- "**/*.yml"
9+
- .github/workflows/yamllint.yaml
10+
branches:
11+
- main
12+
pull_request:
13+
paths:
14+
- "**/*.yaml"
15+
- "**/*.yml"
16+
- .github/workflows/yamllint.yaml
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
lint-yaml:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout repo
26+
uses: actions/checkout@v4
27+
28+
- name: Install Task
29+
uses: arduino/setup-task@8b35f53e4d5a51bf691c94c71f2c7222483206cb
30+
31+
- name: Lint YAML Files
32+
run: task lint:yaml

.yamllint

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
extends: default
2+
ignore:
3+
- "**/.venv/**"
4+
- "**/pnpm-lock.yaml"
5+
rules:
6+
document-start:
7+
present: false
8+
line-length:
9+
max: 1024
10+
new-lines:
11+
type: unix
12+
new-line-at-end-of-file: enable
13+
octal-values:
14+
forbid-implicit-octal: true
15+
quoted-strings:
16+
required: only-when-needed
17+
quote-type: double
18+
truthy:
19+
check-keys: false

0 commit comments

Comments
 (0)