Skip to content

Commit bc9556e

Browse files
committed
refactor: streamline color handling in CLI output
- Replaced the `C` function with a more descriptive `colorize` function for applying color codes in the CLI. - Updated all instances of color application in the `cli.py` file to use the new `colorize` function for consistency and clarity. - Removed unnecessary imports and cleaned up whitespace in `basic_usage.py` for improved readability.
1 parent d615964 commit bc9556e

3 files changed

Lines changed: 115 additions & 108 deletions

File tree

python/examples/basic_usage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"""
1111

1212
import tracesmith as ts
13-
import sys
1413

1514

1615
def main():

python/tracesmith/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- Python and C++ APIs
2424
"""
2525

26-
from ._tracesmith import (
26+
from ._tracesmith import ( # noqa: I001 - imports organized by category
2727
# Version info
2828
__version__,
2929
VERSION_MAJOR,

0 commit comments

Comments
 (0)