Skip to content

Commit

Permalink
Better fix for recent Ruff change
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Sep 5, 2024
1 parent 006df93 commit 25dcaa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/py/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def evaluate(node, g, loop=False):
try:
for n in node.body:
yield from evaluate(n, g, loop)
except ExceptionGroup as e: # noqa: F821
except ExceptionGroup as e:
for n in node.handlers:
if n.name:
g[n.name] = e
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ show_error_codes = true
[tool.ruff]
line-length = 120

target-version = "py311"

extend-exclude = [
"tools/oklab_srgb_gamut_approximation.py"
]
Expand Down Expand Up @@ -116,7 +118,8 @@ lint.ignore = [
"RUF012",
"RUF005",
"PGH004",
"RUF100"
"RUF100",
"B905"
]

[tool.coverage.report]
Expand Down

0 comments on commit 25dcaa0

Please sign in to comment.