Coverage for src / python_commitlint / rules / __init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-04-28 02:54 +0000
« prev ^ index » next coverage.py v7.13.4, created at 2026-04-28 02:54 +0000
1"""Built-in commitlint rules — type, scope, subject, header, body, footer.
3Each rule implements :class:`~python_commitlint.core.protocols.RuleProtocol`
4and is registered with a :class:`~python_commitlint.rules.registry.RuleRegistry`
5so the linter can dispatch by rule name.
6"""
8from python_commitlint.rules.body_rules import (
9 BodyCaseRule,
10 BodyEmptyRule,
11 BodyFullStopRule,
12 BodyLeadingBlankRule,
13 BodyMaxLengthRule,
14 BodyMaxLineLengthRule,
15 BodyMinLengthRule,
16)
17from python_commitlint.rules.footer_rules import (
18 FooterEmptyRule,
19 FooterLeadingBlankRule,
20 FooterMaxLengthRule,
21 FooterMaxLineLengthRule,
22 FooterMinLengthRule,
23)
24from python_commitlint.rules.header_rules import (
25 HeaderCaseRule,
26 HeaderFullStopRule,
27 HeaderMaxLengthRule,
28 HeaderMinLengthRule,
29 HeaderTrimRule,
30)
31from python_commitlint.rules.scope_rules import (
32 ScopeCaseRule,
33 ScopeEmptyRule,
34 ScopeEnumRule,
35 ScopeMaxLengthRule,
36 ScopeMinLengthRule,
37)
38from python_commitlint.rules.subject_rules import (
39 SubjectCaseRule,
40 SubjectEmptyRule,
41 SubjectFullStopRule,
42 SubjectMaxLengthRule,
43 SubjectMinLengthRule,
44)
45from python_commitlint.rules.type_rules import (
46 TypeCaseRule,
47 TypeEmptyRule,
48 TypeEnumRule,
49 TypeMaxLengthRule,
50 TypeMinLengthRule,
51)
53__all__ = [
54 "BodyCaseRule",
55 "BodyEmptyRule",
56 "BodyFullStopRule",
57 "BodyLeadingBlankRule",
58 "BodyMaxLengthRule",
59 "BodyMaxLineLengthRule",
60 "BodyMinLengthRule",
61 "FooterEmptyRule",
62 "FooterLeadingBlankRule",
63 "FooterMaxLengthRule",
64 "FooterMaxLineLengthRule",
65 "FooterMinLengthRule",
66 "HeaderCaseRule",
67 "HeaderFullStopRule",
68 "HeaderMaxLengthRule",
69 "HeaderMinLengthRule",
70 "HeaderTrimRule",
71 "ScopeCaseRule",
72 "ScopeEmptyRule",
73 "ScopeEnumRule",
74 "ScopeMaxLengthRule",
75 "ScopeMinLengthRule",
76 "SubjectCaseRule",
77 "SubjectEmptyRule",
78 "SubjectFullStopRule",
79 "SubjectMaxLengthRule",
80 "SubjectMinLengthRule",
81 "TypeCaseRule",
82 "TypeEmptyRule",
83 "TypeEnumRule",
84 "TypeMaxLengthRule",
85 "TypeMinLengthRule",
86]