Skip to content

Commit 231e8cf

Browse files
committed
ci: fix lint findings and refine ruff rules
1 parent a7a9fef commit 231e8cf

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ line-length = 90
3939
target-version = "py38"
4040

4141
[tool.ruff.lint]
42-
select = ["E", "F", "I", "UP", "B"]
42+
select = ["E", "F", "I", "B"]

src/knot/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import argparse
66
import sys
7-
from typing import List, Optional, Sequence
7+
from typing import Optional, Sequence
88

99
from knot import __version__
1010
from knot.analyzer import build_graph

src/knot/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ def render(fmt: str, graph: ImportGraph, cycles: List[Cycle]) -> str:
7777
try:
7878
return formatters[fmt](graph, cycles)
7979
except KeyError: # pragma: no cover - guarded by argparse choices
80-
raise ValueError(f"unknown format: {fmt!r}")
80+
raise ValueError(f"unknown format: {fmt!r}") from None

0 commit comments

Comments
 (0)