oct
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oct/mutation/__init__.py
4
5"""
6Purpose
7-------
8Expose the stdlib-only mutation engine used by ``oct mutate``.
9
10Responsibilities
11----------------
12- Export the enumeration records and functions that define a mutant's identity.
13- Keep the runner, report, and Click adapters out of package-root imports.
14
15Diagnostics
16-----------
17Domain: OCT-MUTATION
18Levels:
19 L2 - lifecycle
20 L3 - enumeration details
21 L4 - deep tracing
22
23Contracts
24---------
25- Importing this package must require only the Python standard library.
26- v1 measures and reports; it never gates and never sets an outcome exit code.
27
28Dependencies
29------------
30- oct.mutation.engine (stdlib-only AST enumeration and application)
31"""
32
33# OCT-LINT: disable-file=dbg_usage reason="Plan 227 P1 requires the package root to import with every third-party package blocked"
34# OCT-LINT: disable-file=dbg_import reason="Plan 227 P1 forbids third-party imports at the package root"
35
36from oct.mutation.engine import (
37 Mutant,
38 MutantNotFoundError,
39 apply_mutant,
40 enumerate_file,
41 enumerate_source,
42 relative_id,
43)
44
45__all__ = [
46 "Mutant",
47 "MutantNotFoundError",
48 "apply_mutant",
49 "enumerate_file",
50 "enumerate_source",
51 "relative_id",
52]