Contributing
Thank you for your interest in contributing to fassung! This guide will help you get started with the development environment.
Development
fassung uses uv for dependency management, ruff for formatting & linting, pyright for type checking, and pytest for testing.
Setup
To install the dependencies including dev-dependencies, run:
Pre-commit hooks
fassung uses prek for pre-commit hooks. To install the hooks, run:
Coding Standards
We use ruff for linting and formatting, and pyright for static type analysis.
To format the code:
To lint the code:
To run type checking:
Infrastructure
The project requires a PostgreSQL database for some tests. Create an .env file in the project root directory and add the following lines:
Then you can start the database using Docker Compose:
Testing
To run the tests with coverage and generate a report, run:
Documentation
To serve the documentation locally:
To build the documentation: