Thank you for your interest in contributing! Here are the guidelines to get started.
-
Fork and clone the repository:
git clone https://github.com/ZenithClown/python-git-template.git cd python-git-template -
Create a virtual environment and install dependencies:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate pip install -e . pip install pytest flake8
-
Install pre-commit hooks:
pip install pre-commit pre-commit install
- Python style is enforced by flake8 with settings in
.flake8. - Max line length: 88 characters.
- All public classes, functions, and methods must have docstrings.
- Use reST-style docstrings.
python -m pytest tests/ -v --tb=shortcd docs
pip install -r requirements-doc.txt
make html- Create a new branch:
git checkout -b feature/my-feature - Make your changes and commit with a descriptive message.
- Push the branch:
git push origin feature/my-feature - Open a pull request against
master. - Ensure all CI checks pass.
Use the Bug Report issue template.
Use the Feature Request issue template.