This is a boilerplate Python project using uv, pre-commit, and GitHub Actions.
- Make sure you have Python 3.12 installed.
- Install uv: https://github.com/astral-sh/uv#installation
- Clone this repository.
- Run
uv pip install -r requirements.txtto install dependencies. - Run
uv pip install pre-committo install pre-commit. - Run
pre-commit installto set up pre-commit hooks.
- Use
python -m pytestto run tests. - The pre-commit hooks will run automatically on commit, or you can run them manually with
pre-commit run --all-files.
The .github/workflows/pre-commit.yml file sets up a GitHub Action that runs pre-commit checks on pull requests and pushes to the main and feature/* branches.