ci: lint training and benchmarks too

Both directories are ruff-clean now; keeping them in the lint scope stops
the scripts from rotting. Notebooks are excluded from ruff because Jupyter
cells follow shell-magic and #@param conventions instead of repo style.
This commit is contained in:
Abolfazl Ranjbaran committed 2026-11-14 19:19:02 +00:00
1 parent 3c92fc8f8c
commit c7552ae8cb
2 files changed
+7

No files matched your search

+3
View File
@@ -34,6 +34,9 @@ jobs:
run: |
dirs="backend"
if [ -d bot ]; then dirs="$dirs bot"; fi
for extra in training benchmarks; do
if [ -d "$extra" ]; then dirs="$dirs $extra"; fi
done
ruff check $dirs
- name: Type check (mypy)
if: ${{ hashFiles('backend/sokhan/**/*.py') != '' }}
+4
View File
@@ -1,6 +1,10 @@
line-length = 100
target-version = "py310"
# Jupyter/Colab cells follow notebook conventions (shell magics, #@param
# pragmas, imports mid-cell), not the repo's Python style.
extend-exclude = ["*.ipynb"]
[lint]
select = ["E", "F", "I", "W", "UP", "B"]
ignore = ["B008"]