Skip to content

AbanteAI/template-mentat-python

Repository files navigation

Python Project Template

A simple template for Python projects with basic setup for development and testing.

Features

  • Basic structure with source code in src/ and tests in tests/
  • Simple Hello World example
  • Testing with pytest
  • Code quality tools:
    • Ruff for linting and formatting
    • Pyright for type checking
  • CI/CD with GitHub Actions

Getting Started

Prerequisites

  • Python 3.8 or newer
  • pip for package management

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
  1. Set up a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install development dependencies:
pip install -r dev-requirements.txt

Running the Program

python -m src.hello_world.main

Development

Run the tests:

pytest

Check code style and lint:

ruff check .
ruff format --check .

Format code:

ruff format .

Type check with pyright:

pyright

Project Structure

.
├── .github/workflows  # GitHub Actions workflows
├── src/               # Source code
├── tests/             # Test files
├── .gitignore         # Git ignore file
├── dev-requirements.txt  # Development dependencies
├── pyproject.toml     # Project configuration
└── README.md          # This file

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Fork this repository and install mentat to get started

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published