Skip to content

Commit a92da30

Browse files
committed
add CI linting to notebooks
1 parent 3e0fd5f commit a92da30

File tree

184 files changed

+5778
-5928
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+5778
-5928
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "notebooks-linting"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main, develop ]
7+
pull_request:
8+
branches: [ main, develop ]
9+
10+
jobs:
11+
lint:
12+
name: Run notebook linting
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 1
18+
19+
- uses: astral-sh/ruff-action@v3
20+
with:
21+
version: 0.5.5
22+
23+
- name: Run ruff format
24+
run: ruff format --check --diff .
25+
26+
- name: Run ruff check
27+
run: ruff check .
28+
29+
- name: Install codespell
30+
run: pip install codespell
31+
32+
- name: Run codespell
33+
run: codespell

0 commit comments

Comments
 (0)