tif1.
Development Setup
Prerequisites
- Python 3.11+
- uv (Recommended for dependency management)
Installation
1
Clone the repository
2
Install dependencies
Use
uv to create a virtual environment and install all development extras.3
Install git hooks with prek
Enable automated linting and formatting before every commit.
Testing Workflow
The test suite usespytest, with xdist for parallel execution.
Running Tests
Code Coverage
Run the tests with coverage reporting:Code Quality
Make sure that the code passes all quality checks before a pull request is submitted.- Linting & Formatting: The project uses
ruff. - Type Checking: The project uses
pyright(viaty). - prek: Run all checks at once.
Documentation
The documentation is built with Mintlify.Local Development
To preview the documentation locally:- Install the Mintlify CLI:
npm i -g mintlify - Run the dev server in the
docsdirectory:mintlify dev
Guidelines
- Use Google-style docstrings for all public functions.
- Update
mint.jsonwhen a new page is added. - Use Mintlify components (
<Steps>,<Card>,<CodeGroup>) to structure the pages.
Pull Request Process
- Create a branch:
git checkout -b feat/your-awesome-feature - Implement & Test: Make sure that the coverage does not drop.
- Commit: Use Conventional Commits, for example
feat:,fix:,docs:,perf:. - Push & Open PR: Describe the changes and the reason for them.