Contributing to charstyle
Thank you for your interest in contributing to charstyle! This document provides guidelines and instructions for contributing to the project.
Development Setup
-
Clone the repository:
-
Install Hatch if you don't have it already:
-
Set up the development environment:
Running Tests
Run the test suite to make sure everything is working correctly:
Run tests with coverage:
Code Style
This project follows PEP 8 style guidelines. We use Ruff for code formatting and linting:
Pre-commit Hooks
We use pre-commit hooks to ensure code quality. Install them with:
Documentation
We use pdoc for documentation. To build and serve the documentation locally:
Adding New Features
-
Create a new branch for your feature:
-
Implement your feature and add tests.
-
Update the documentation if necessary.
-
Run the tests to make sure everything passes:
-
Run the pre-commit checks:
-
Submit a pull request.
Reporting Issues
If you find a bug or have a feature request, please open an issue on the GitHub repository. Please include:
- A clear and descriptive title
- A detailed description of the issue or feature request
- Steps to reproduce the issue (if applicable)
- Expected behavior
- Actual behavior
- Environment information (OS, Python version, etc.)
Style Guidelines
When contributing code, please follow these guidelines:
- Use descriptive variable and function names.
- Add docstrings to all functions, classes, and modules.
- Write clear and concise comments.
- Follow the existing code style.
- Include type annotations for all functions and methods.
License
By contributing to charstyle, you agree that your contributions will be licensed under the project's license.