Coverage for src / python_commitlint / core / __init__.py: 100%
5 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"""Core domain layer — enums, dataclasses, protocols, and exceptions.
3This subpackage holds the framework-free building blocks used throughout
4python-commitlint: shared enumerations, validated value objects, structural
5Protocol contracts for adapters, and the :class:`ConfigurationError` raised
6at the configuration boundary.
7"""
9from python_commitlint.core.enums import (
10 CaseType,
11 RuleCondition,
12 Severity,
13)
14from python_commitlint.core.exceptions import ConfigurationError
15from python_commitlint.core.models import (
16 CaseValidation,
17 CommitMessage,
18 Configuration,
19 LintResult,
20 RuleConfig,
21 ScopeEnumValidation,
22 ValidationError,
23)
24from python_commitlint.core.protocols import (
25 CommitLinterProtocol,
26 CommitParserProtocol,
27 ConfigurationLoaderProtocol,
28 RuleProtocol,
29)
31__all__ = [
32 "CaseType",
33 "CaseValidation",
34 "CommitLinterProtocol",
35 "CommitMessage",
36 "CommitParserProtocol",
37 "Configuration",
38 "ConfigurationError",
39 "ConfigurationLoaderProtocol",
40 "LintResult",
41 "RuleCondition",
42 "RuleConfig",
43 "RuleProtocol",
44 "ScopeEnumValidation",
45 "Severity",
46 "ValidationError",
47]