-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (43 loc) 路 1.08 KB
/
Copy pathlint.yml
File metadata and controls
52 lines (43 loc) 路 1.08 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
44
45
46
47
48
49
50
51
52
name: Python Lint
on:
pull_request:
paths:
- "packages/**"
- "apps/mewbo_api/**"
- "apps/mewbo_cli/**"
- "apps/mewbo_mcp/**"
- "apps/mewbo_ha_conversation/**"
- "tests/**"
- "demo/seeder/**"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/lint.yml"
workflow_dispatch:
permissions:
contents: read
# One run per PR; a new commit cancels the superseded run.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
name: ruff + mypy
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install uv
run: |
python -m pip install --upgrade pip
python -m pip install uv
- name: Install dependencies
run: |
uv sync --all-extras --group dev
- name: Ruff
run: .venv/bin/ruff check
- name: Mypy
run: .venv/bin/mypy