Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.21 KB

README.md

File metadata and controls

70 lines (46 loc) · 2.21 KB

RHFest

RotorHazard Plugin Template

This is a basic template repository for creating a plugin for the RotorHazard timing platform. It is intended to be used as a starting point for creating a new plugin.

Warning

If you apply this plugin template to an existing RotorHazard plugin that uses GitHub releases, please note that the community store is only compatible with published releases that also pass the RHFest checks.

Features

  • Pre-commit checks: to run checks and tests on each commit.
  • Python virtual environment: uses uv to manage the python virtual environment and dependencies.
  • RHFest validation: GitHub action to validate the plugin manifest file against the RHFest schema.
  • Renovate: uses Renovate to keep dependencies up to date.

Development

How to setup the development environment.

Prerequisites

You need the following tools to get started:

  • uv - A python virtual environment/package manager
  • Python 3.13 - The programming language

Installation

  1. Clone the repository
  2. Install all dependencies with UV. This will create a virtual environment and install all dependencies
uv sync
  1. Setup the pre-commit check, you must run this inside the virtual environment
uv run pre-commit install

Run pre-commit checks

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

uv run pre-commit run --all-files

To manual run only on the staged files, use the following command:

uv run pre-commit run

License

Distributed under the MIT License. See LICENSE for more information.