-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.01 KB
/
lint.yml
File metadata and controls
43 lines (40 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Format and Lint
on:
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
permissions:
contents: write
pull-requests: write
jobs:
lint-python:
name: Format and Lint Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: "true"
- name: Run Ruff
run: uv run ruff check . --output-format=github
- name: Ruff format
run: uv run ruff format . --check
lint-docs:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Markdown Lint base-files
uses: DavidAnson/markdownlint-cli2-action@v20
with:
globs: |
*.md
.github/**/*.md
config: ./.markdownlint.json
# - name: Markdown Lint Docs
# uses: DavidAnson/markdownlint-cli2-action@v20
# with:
# globs: docs/**/*.md
# config: docs/.markdownlint.json