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:
parent
a06cb5bdfb
commit
7a000145a7
1 changed files with 15 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue