-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (30 loc) · 919 Bytes
/
lint.yml
File metadata and controls
40 lines (30 loc) · 919 Bytes
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
name: Linting
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout tango API repo (manifest source)
uses: actions/checkout@v4
with:
repository: makegov/tango
path: tango-api
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --all-extras
- name: Check formatting with ruff
run: uv run ruff format --check tango/
- name: Lint with ruff
run: uv run ruff check tango/
- name: Check SDK filter/shape conformance
run: uv run python scripts/check_filter_shape_conformance.py --manifest tango-api/contracts/filter_shape_contract.json