Skip to content

Commit 5ea2a8f

Browse files
justaddcoffeeclaude
andcommitted
Configure ruff to ignore F821 in notebooks
Ruff does not understand Jupyter notebook cell execution order, so it reports undefined name errors for variables that are defined in earlier cells. This is a false positive for notebooks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9e3ee96 commit 5ea2a8f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,11 @@ extend-exclude = [
8888
"src/mcp_literature_eval/datamodel/mcp_literature_eval.py",
8989
]
9090

91+
# Ref.: https://docs.astral.sh/ruff/
92+
[tool.ruff]
93+
# Ignore F821 (undefined name) in notebooks - ruff doesn't understand Jupyter cell execution order
94+
[tool.ruff.lint.per-file-ignores]
95+
"notebook/*.ipynb" = ["F821"]
96+
9197
[tool.uv.sources]
9298
metacoder = { git = "https://github.com/ai4curation/metacoder.git", branch = "codex-disable-shell-tool" }

0 commit comments

Comments
 (0)