Contributing
Thank you for considering contributing to auto-print! This document provides guidelines for contributing to the project.
Development Setup
Clone the repository:
git clone https://github.com/philipp-horstenkamp/auto-print.git cd auto-print
Install development dependencies:
poetry install --with dev,docs
Set up pre-commit hooks:
pre-commit install
Code Style
This project uses:
Ruff for linting and formatting
MyPy for type checking
You can run these tools using pre-commit:
pre-commit run --all-files
Testing
Run tests using pytest:
poetry run pytest
Documentation
To build the documentation:
cd docs
make html
For the German translation:
cd docs
make gettext
sphinx-intl update -p _build/gettext -l de
# Edit the .po files in locale/de/LC_MESSAGES/
make -e SPHINXOPTS="-D language='de'" html
Pull Request Process
Create a new branch for your feature or bugfix
Make your changes
Run tests and linting
Submit a pull request
Ensure CI checks pass