Contributing
When contributing to this repository, please discuss the change you wish to make first via issue.
We have pull request guidelines; please follow these in all your interactions with the project.
Pull Request Guidelines
Section titled “Pull Request Guidelines”Only Edit Relevant Files
Section titled “Only Edit Relevant Files”- Focus your pull request on a single feature or issue.
- Do not change files unrelated to that specific issue or feature.
Submit Clean Code
Section titled “Submit Clean Code”- Follow PEP 8 conventions.
- Run
ruff checkbefore submitting. - Run
mypy --strict fitness_tools/to verify type safety.
Write Tests
Section titled “Write Tests”This project uses pytest for unit tests.
- If you’re adding a feature, write tests to support it.
- If you’re fixing a bug, add tests to reproduce it.
Make Sure Your Tests Pass
Section titled “Make Sure Your Tests Pass”Run the full test suite from the root directory:
python -m pytest tests/ -vKeep Commit History Short and Clean
Section titled “Keep Commit History Short and Clean”Make one commit per feature or bug. Short histories aid in finding bugs and identifying the best fixes.
Be Descriptive
Section titled “Be Descriptive”State a convincing case why your PR should be accepted.