Skip to content

Commit 75dea2c

Browse files
committed
Add CI linting with ruff and pyproject.toml config
Add ruff check step to CI before deploy. Configure ruff for Python 3.10 with E/F/W/I rule selection and 120 char line length.
1 parent c07ef5f commit 75dea2c

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
python -m pip install --upgrade pip
3737
pip install modal httpx fastapi
3838
39+
- name: Lint with ruff
40+
run: |
41+
pip install ruff
42+
ruff check app.py
43+
3944
- name: Deploy job
4045
run: |
4146
modal deploy app.py

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[tool.ruff]
2+
target-version = "py310"
3+
line-length = 120
4+
5+
[tool.ruff.lint]
6+
select = ["E", "F", "W", "I"]

0 commit comments

Comments
 (0)