File tree Expand file tree Collapse file tree 3 files changed +316
-257
lines changed
Expand file tree Collapse file tree 3 files changed +316
-257
lines changed Original file line number Diff line number Diff line change 1+ name : Code Check
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ code-check :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.11"
20+
21+ - name : Install uv
22+ uses : astral-sh/setup-uv@v6
23+ with :
24+ version : " 0.8.4"
25+ enable-cache : true
26+
27+ - name : Install dependencies
28+ run : uv sync --locked --group lint
29+
30+ - name : Check imports with ruff
31+ run : uv run ruff check --select I --exit-non-zero-on-fix .
32+
33+ - name : Check formatting with ruff
34+ run : uv run ruff format --check .
35+
36+ - name : Clean notebooks
37+ run : uv run nb-clean check --remove-empty-cells --remove-all-notebook-metadata --preserve-cell-outputs examples/*.ipynb
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ ssl = ["certifi>=2025.7.14"]
4242
4343[dependency-groups ]
4444dev = [
45+ { include-group = " lint" },
4546 { include-group = " docs" },
4647 { include-group = " test" },
4748 " pre-commit>=4.2.0" ,
48- " ruff>=0.12.5" ,
49- " nb-clean>=4.0.1" ,
5049 " ipykernel>=6.30.0" ,
5150]
51+ lint = [" ruff>=0.12.5" , " nb-clean>=4.0.1" ]
5252docs = [" furo>=2025.7.19" , " myst-parser>=3.0.1" , " sphinx>=7.4.7" ]
5353test = [" pytest>=8.4.1" , " pytest-rerunfailures>=15.1" ]
5454
You can’t perform that action at this time.
0 commit comments