Metadata-Version: 2.4
Name: prune-cli
Version: 0.1.1
Summary: A CLI tool named prune for cleaning Python code
Author-email: vincentdeneuf <0189vn@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/vincentdeneuf/prune-cli
Project-URL: Repository, https://github.com/vincentdeneuf/prune-cli
Project-URL: Issues, https://github.com/vincentdeneuf/prune-cli/issues
Keywords: cli,code,formatting,refactor,ast,prune
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: libcst
Dynamic: license-file

# prune

A CLI tool named prune for cleaning Python code.

## Installation

```bash
pip install prune-cli
```

## Usage

```bash
prune <command> [options]
```

### Commands

- `prune comments` - Remove comments from Python files
- `prune prints` - Remove print statements from Python files  
- `prune docstrings` - Remove docstrings from Python files
- `prune asserts` - Remove assert statements from Python files
- `prune logs` - Remove logging statements from Python files

### Examples

```bash
# Remove all print statements
prune prints

# Remove inline comments only (preserve noqa, type:, pragma)
prune comments --default

# Remove all types of comments
prune comments --all

# Remove specific log levels
prune logs --debug --info --error

# Remove all log levels
prune logs --all

# Show per-file details (verbose is default)
prune prints

# Suppress per-file output
prune prints --quiet
```

## Development

This project uses a src-layout packaging structure.

### Requirements

- Python >= 3.11
- LibCST

## License

MIT License
