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/formatter/__init__.py
4
5"""
6Formatter module for OCT.
7
8Purpose
9-------
10Provides auto-fixing capabilities for Option C compliance violations.
11
12Responsibilities
13----------------
14- Export the main formatter entry point (`run_formatter`).
15- Enable CLI integration of the formatter command.
16
17Diagnostics
18-----------
19Domain: OCT.FORMATTER
20Levels:
21 L2 - formatter lifecycle and command execution
22 L3 - file processing and fix application
23 L4 - detailed fixer operation (header, docstring, import, func pattern)
24
25Contracts
26---------
27- All public exports are guaranteed to be importable from this module.
28
29Dependencies
30------------
31- oct.core.diagnostics (_dbg structured logger, imported but not called)
32- oct.formatter.oct_format (run_formatter - the re-exported entry point)
33"""
34
35from oct.formatter.oct_format import run_formatter
36# OCT-LINT: disable-file=dbg_usage reason="Plan 263: a re-export package root with no function or method, so any _dbg call here would run before oc_diagnostics.init() and add a RuntimeWarning to every oct invocation"
37from oct.core.diagnostics import _dbg
38
39__all__ = ["run_formatter"]