File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Linter
2+
3+ on : [push, pull_request]
4+
5+ env :
6+ PYTHON_VERSION : " 3.12"
7+ UV_VERSION : " 0.7.8"
8+ UV_PROJECT_ENVIRONMENT : .venv
9+ RUFF_VERSION : " 0.11.2"
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ check :
17+ strategy :
18+ fail-fast : true
19+
20+ name : Linter
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
25+ - name : Install uv
26+ uses : astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5
27+
28+ - name : Install Python
29+ uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
30+ with :
31+ cache : true
32+ cache-dependency-path : " uv.lock" # Update cache if uv.lock changes
33+
34+ - name : Install the project
35+ run : uv sync --all-extras --dev
36+
37+ - name : Configure path
38+ run : echo "$PWD/.venv/bin" >> $GITHUB_PATH
39+
40+ - name : Run Ruff linter
41+ run : uv run ruff check --output-format=github .
42+
43+ - name : Run Ruff formatter
44+ run : uv run ruff format --check .
45+
46+ - name : Run Pyright check
47+ uses : jakebailey/pyright-action@b5d50e5cde6547546a5c4ac92e416a8c2c1a1dfe # v2.3.2
48+ with :
49+ version : PATH
You can’t perform that action at this time.
0 commit comments