Contributing to anonymizer-data
Thank you for considering contributing to anonymizer-data! This guide will help you set up your development environment and outline the contribution process.
Development Environment Setup
This project uses uv as the package and project manager.
-
Clone the repository:
git clone https://github.com/JhonatanRian/anonymize.git cd anonymize -
Install dependencies:
uv sync --dev -
Activate the virtual environment:
source .venv/bin/activate # On Linux/macOS # or .venv\Scripts\activate # On Windows
Development Workflow
-
Create a branch for your changes:
git checkout -b feat/your-feature-name # or git checkout -b fix/your-bug-name -
Make your changes. Ensure you follow the project's coding style guidelines.
-
Run tests & coverage:
uv run coverage run -m unittest -
Lint and Format: We use
rufffor linting and formatting.uv run ruff format . uv run ruff check . --fix -
Type Checking:
uv run pyright src -
Documentation: To preview the documentation locally:
uv run mkdocs serve
Pull Request Process
- Ensure all tests and type checks pass.
- Update the user documentation in the
docs/folder if you change or add any functionality. - Submit a Pull Request targeting the
mainbranch. - Provide a clear description of your changes and link any related issues.
Commit Message Style
We follow Conventional Commits:
- feat: for new features.
- fix: for bug fixes.
- docs: for documentation changes.
- refactor: for code changes that neither fix a bug nor add a feature.
- perf: for performance improvements.
- test: for adding missing tests.
- chore: for updating build tasks, package manager configs, etc.
By contributing, you agree that your contributions will be licensed under the MIT License.