Skip to content

Repository files navigation

MPPT: A Modern Python Package Template

Python PyPI PyPI Downloads GitHub License

Ruff ty prek Build Docs Test Codecov

About

MPPT: A Modern Python Package Template.

Get Started

  1. Use this template repository to create your own project repository by clicking the "Use this template" button on GitHub or visiting MPPT.

  2. Replace all instances of MPPT, shenxiangzhuang, and other template-specific details with your own information:

    • Project name, author, and GitHub username in all files
    • GitHub repository links in README.md badges and documentation
    • Package name in pyproject.toml and code files
    • Update LICENSE file with your name and year
  3. Set up your development environment:

    # Clone your repository
    git clone https://github.com/your-username/your-project.git
    cd your-project
    
    # Create the environment and install development dependencies
    uv sync
    
    # Install the prek Git hooks
    uv run prek install
  4. Start developing your package by modifying the code structure as needed.

  5. Run tests to ensure everything is working correctly:

    uv run pytest
  6. Preview documentation locally:

    uv run --group docs zensical serve

    Then visit http://127.0.0.1:8000 in your browser.

For more details on customization options, refer to the documentation.