It outlines our workflow and standards for contributing to this project.
Parser should be developed so that it is consistent with other parsers. Check out other parsers to see the required structure. Additionally, pay attention to the naming of the parser's attributes. Check out Developer guide.
We use pre-commit hooks to ensure code quality and consistency:
- Install pre-commit (see pre-commit.com).
- Clone the repository and run
pre-commit install
in the root directory. - The pre-commit hook will now run automatically on
git commit
.- If the hook fails, it will print an error message and abort the commit.
- It will also modify the files in-place to fix any issues it can.
We use the Epytext markup language for documentation. To verify that your documentation is formatted correctly, follow these steps:
- Download
get-docs.py
script - Run
python3 get-docs.py luxonis_ml
in the root directory.- If the script runs successfully and produces
docs.json
file, your documentation is formatted correctly. - NOTE: If the script fails, it might not give the specific error message. In that case, you can run the script for each file individually until you find the one that is causing the error.
- If the script runs successfully and produces
- PyCharm - built in support for generating
epytext
docstrings - Visual Studie Code - AI Docify extension offers support for
epytext
- NeoVim - vim-python-docstring supports
epytext
style
- Make changes in a new branch.
- Test your changes locally.
- Commit (pre-commit hook will run).
- Push to your branch and create a pull request. Always request a review from:
- Any other relevant team members can be added as reviewers as well.
- The team will review and merge your PR.