Coverage for src/debputy/lsp/named_styles.py: 100%
7 statements
« prev ^ index » next coverage.py v7.8.2, created at 2025-09-07 09:27 +0000
« prev ^ index » next coverage.py v7.8.2, created at 2025-09-07 09:27 +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 """\
18 Uncompromising file formatting of Debian packaging files
20 By using it, you agree to cede control over minutiae of hand-formatting. In
21 return, the formatter gives you speed, determinism, and freedom from style
22 discussions about formatting.
24 The `black` style is inspired by the `black` Python code formatter. Like with
25 `black`, the style will evolve over time.
26 """
27 ),
28 ),
29 ]
30}