32 lines
549 B
Markdown
32 lines
549 B
Markdown
# Python CLI Template
|
|
|
|
Minimal Cookiecutter template for python CLI tools. Python 3.12+, uv, Typer, ruff, mypy, pytest.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
cruft create git@git.roxautomation.com:sjev/python-cli-template.git
|
|
cd your-project
|
|
uv sync --frozen --group dev
|
|
uv run invoke lint
|
|
uv run invoke test
|
|
```
|
|
|
|
## Generated structure
|
|
|
|
```
|
|
your-project/
|
|
├── pyproject.toml
|
|
├── tasks.py
|
|
├── src/your_package/
|
|
│ ├── __init__.py
|
|
│ ├── py.typed
|
|
│ └── cli.py
|
|
└── tests/
|
|
└── test_cli.py
|
|
```
|
|
|
|
## License
|
|
|
|
MIT
|