files•1.13 kB
.
├── README.md.j2
├── pyproject.toml.j2
├── src/
│   └── {{project_name.lower().replace('-', '_')}}/
│       └── __init__.py.j2
└── tests/
    └── __init__.py
Content of README.md.j2:
# {{project_name}}
{{description}}
## Installation
```bash
pip install -e .
```
## Development
```bash
# Setup development environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest
```
Content of pyproject.toml.j2:
[project]
name = "{{project_name}}"
version = "0.1.0"
description = "{{description}}"
requires-python = ">=3.8"
readme = "README.md"
dependencies = []
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[project.optional-dependencies]
dev = [
    "pytest>=7.0",
    "pytest-cov>=4.0",
    "mypy>=1.0",
    "black>=23.0"
]
Content of src/{{project_name.lower().replace('-', '_')}}/__init__.py.j2:
"""{{project_name}} package."""
__version__ = "0.1.0"