-
Notifications
You must be signed in to change notification settings - Fork 4
82 lines (64 loc) · 1.55 KB
/
code-style.yml
File metadata and controls
82 lines (64 loc) · 1.55 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Code Style
on:
push:
jobs:
# CSpell
cspell:
name: CSpell
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install CSpell
run: |
npm install -g cspell @cspell/dict-python
- name: Run CSpell
run: |
cspell \
--no-progress \
--no-summary \
--config .cspell/cspell.json \
packages/**/*.py \
packages/**/*.md \
packages/**/*.json \
packages/**/*.toml \
packages/**/*.yml \
packages/**/*.yaml
# Ruff
ruff:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Create build info
run: |
bash scripts/build-info.sh
- name: Install the project
run: uv sync --locked --all-extras --all-packages --no-install-project --dev
- name: Run Ruff
run: |
uv run ruff check
# Ty
ty:
name: Ty
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Create build info
run: |
bash scripts/build-info.sh
- name: Install the project
run: uv sync --locked --all-extras --all-packages --no-install-project --dev
- name: Run Ruff
run: |
uv run ty check