Lint the notebooks in the lint session

Only `ruff` checks them because the formatters would rewrite the cells.

The per-file ignores fit exploratory code that is never rerun.
This commit is contained in:
Alexander Hess 2026-12-03 11:45:15 +01:00
commit 7a000145a7
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -735,6 +735,15 @@ external = [
"migrations/versions/*.py" = ["ANN0", "ANN2", "S608"]
# Type annotations are not strictly enforced
"noxfile.py" = ["ANN0", "ANN2"]
"research/*.ipynb" = [
"ANN0", "ANN2", # Type annotations are not strictly enforced
"E501", # Exploratory cells read better unwrapped
"E712", # `== True` filters `pandas` columns element-wise
"PTH", # Paths stay `str`s as in the stored outputs
"S101", # `assert` statements document expectations
"S605", "S608", # No untrusted input
"T20", # `print()` shows results
]
# `print()` is ok in ad-hoc scripts
"scripts/**" = ["T20"]
# - ANN0, ANN2 => Type annotations are not strictly enforced