Contributing
Contributions are welcome! To contribute, please follow these steps:
- Fork the repository on GitHub: https://github.com/basnijholt/markdown-code-runner
- Create a new branch for your changes.
- Make your changes, ensuring that they adhere to the code style and guidelines.
- Submit a pull request with a description of your changes.
Please report any issues or bugs on the GitHub issue tracker: https://github.com/basnijholt/markdown-code-runner/issues
Thank you for your interest in markdown-code-runner!
Development Setup
- Clone the repository:
- Create a virtual environment and install dependencies:
# Using uv (recommended)
uv sync
# Or using pip
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e ".[test]"
- Run the tests:
- Run pre-commit hooks:
Code Style
This project uses:
- Ruff for linting and formatting
- MyPy for type checking
- pytest for testing with 100% code coverage requirement
Pull Request Process
- Create a new branch for your changes
- Make your changes and add tests
- Ensure all tests pass:
pytest - Ensure pre-commit passes:
pre-commit run --all-files - Submit a pull request with a clear description
Reporting Issues
Please report issues on the GitHub issue tracker.
Include:
- A clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Your Python version and OS