Skip to content

Commit 57b63ed

Browse files
style: apply ruff format to src/deadcode/config.py
1 parent 95abe64 commit 57b63ed

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

src/deadcode/config.py

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,30 @@ class DeadCodeConfig:
1818
"""Configuration loaded from .deadcode.yml."""
1919

2020
ignore: list[str] = field(default_factory=list)
21-
categories: list[str] = field(default_factory=lambda: [
22-
"unused_export", "dead_route", "orphaned_css", "unreferenced_component",
23-
])
21+
categories: list[str] = field(
22+
default_factory=lambda: [
23+
"unused_export",
24+
"dead_route",
25+
"orphaned_css",
26+
"unreferenced_component",
27+
]
28+
)
2429
fail_threshold: int = -1 # -1 means disabled
2530

2631
@classmethod
2732
def from_dict(cls, data: dict[str, Any]) -> DeadCodeConfig:
2833
"""Create config from a parsed dict."""
2934
return cls(
3035
ignore=data.get("ignore", []),
31-
categories=data.get("categories", [
32-
"unused_export", "dead_route", "orphaned_css", "unreferenced_component",
33-
]),
36+
categories=data.get(
37+
"categories",
38+
[
39+
"unused_export",
40+
"dead_route",
41+
"orphaned_css",
42+
"unreferenced_component",
43+
],
44+
),
3445
fail_threshold=data.get("fail_threshold", -1),
3546
)
3647

0 commit comments

Comments
 (0)