Contributions are welcome to this repo, but we do have a few guidelines for contributors.
All submissions, including those from project members, are required to go through review. We use GitHub Pull Requests for this workflow, which should be linked with an issue for tracking purposes. A GitHub action will be run against your PR to ensure code standards have been applied.
pre-commit is used to ensure that all files have consistent formatting and to avoid committing secrets.
-
Install pre-commit in a virtual python environment or globally: see instructions
-
Fork and clone this repo
-
Install pre-commit hook to git
E.g.
pip install --upgrade pip pre-commit pre-commit install
-
Create a new branch for changes
-
Execute tests using Makefile
E.g.
gmake verify kitchen list
Instance Driver Provisioner Verifier Transport Last Action Last Error minimal-project-role-local Terraform Terraform Terraform Ssh Verified <None> random-id-project-role-local Terraform Terraform Terraform Ssh Verified <None> fixed-id-project-role-local Terraform Terraform Terraform Ssh Verified <None> minimal-org-role-local Terraform Terraform Terraform Ssh Verified <None> random-id-org-role-local Terraform Terraform Terraform Ssh Verified <None> fixed-id-org-role-local Terraform Terraform Terraform Ssh Verified <None> example-simple-project-role-local Terraform Terraform Terraform Ssh Verified <None> example-simple-org-role-local Terraform Terraform Terraform Ssh Verified <None> example-fixed-id-local Terraform Terraform Terraform Ssh Verified <None>
gmake clean
-
Commit and push changes for PR
The hook will ensure that
pre-commit
will be run against all staged changes duringgit commit
.