aboutcode-org / aboutcode-org/scancode-workbench
Husky pre-commit hooks for tests
Open
enhancement
needs-review
- Dominant language
- TypeScript
- Stars
- 173
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Having a pre-commit hook should be beneficial to avoid committing failing-test code
Similar to [pre-commit](https://pre-commit.com/) in python,
We have husky for javascript projects - https://www.npmjs.com/package/husky
Configuration:
With the configuration in place, the pre-commit hooks are setup automatically on `npm install` and run on attempting a commit
No special action is required by the developers
For example:
Contributor guide
Assessment
This issue has not been assessed yet.