Contributing¶
We are pleased that you would like to contribute to Mellea Skills Compiler. We welcome both reporting issues and submitting pull requests.
Reporting issues¶
Please make sure to include any potentially useful information in the issue, so we can pinpoint the issue faster without going back and forth.
- What SHA of Mellea Skills Compiler are you running? If this is not the latest SHA on the main branch, please try if the problem persists with the latest version.
- Python versions
Contributing a change¶
Contributions to this project are released to the public under the project's opensource license.
Contributors must sign off that they adhere to these requirements by adding a Signed-off-by line to all commit messages with an email address that matches the commit author:
Coding Style Guidelines We are using tools to enforce code style:
- iSort, to sort imports
- Black, to format code
We run a series of checks on the codebase on every commit using pre-commit. To install the hooks, run:
pre-commit install
To run the checks on-demand, run:
pre-commit run --all-files
Secret scanning¶
This repository uses IBM's detect-secrets to scan for secrets before the code is pushed to GitHub. Follow installation instructions in their repository: https://github.com/ibm/detect-secrets?tab=readme-ov-file#example-usage
To update the secrets database manually, install optional secrets dependency
then run:
To audit detected secrets, use:
If the pre-commit hook raises an error but the audit command succeeds with just Nothing to audit! then run detect-secrets scan --update .secrets.baseline to perform a full scan and then repeat the audit command.
Submitting a pull request¶
- Fork and clone the repository
- Create a new branch:
git checkout -b my-branch-name - Make your change, push to your fork and submit a pull request
- Wait for your pull request to be reviewed and merged.