Coverage for src/debputy/lsp/named_styles.py: 100%
7 statements
« prev ^ index » next coverage.py v7.8.2, created at 2026-04-19 20:37 +0000
« prev ^ index » next coverage.py v7.8.2, created at 2026-04-19 20:37 +0000
1import dataclasses
2import textwrap
5@dataclasses.dataclass(slots=True, frozen=True)
6class PublicNamedStyle:
7 name: str
8 long_description: str
11ALL_PUBLIC_NAMED_STYLES = {
12 s.name: s
13 for s in [
14 PublicNamedStyle(
15 "black",
16 long_description=textwrap.dedent("""\
17 Uncompromising file formatting of Debian packaging files
19 By using it, you agree to cede control over minutiae of hand-formatting. In
20 return, the formatter gives you speed, determinism, and freedom from style
21 discussions about formatting.
23 The `black` style is inspired by the `black` Python code formatter. Like with
24 `black`, the style will evolve over time.
25 """),
26 ),
27 ]
28}