Skip to content

PrismaPhotonics/py-template

Repository files navigation

py-template

Python template based on cookiecutter-hypermodern-python.

Usage

$ cruft create https://github.com/PrismaPhotonics/py-template

Features

The template supports Python 3.8, 3.9, 3.10 and 3.11.

Development

Running Tests

To test the template itself:

# Install test dependencies
$ pip install -e ".[tests]"

# Run the test suite
$ pytest tests/ -v

# Run with coverage
$ pytest tests/ -v --cov=. --cov-report=html

The test suite validates:

  • Template generation with cruft
  • Project structure and required files
  • README and CONTRIBUTING formatting (Markdown)
  • CI/CD configuration (GitHub Actions)
  • YAML validity of workflow files
  • pyproject.toml configuration
  • License file generation
  • Jinja2 template rendering

Releases

No releases published

Packages

No packages published

Languages