Some pre-commit hooks for OpenTAI projects.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/OpenTAI/pre-commit-hooks
rev: 0.1.0 # Use the ref you want to point at
hooks:
- id: check-copyright
args: ["dir_to_check"] # replace the dir_to_check with your expected directory to check
A template to show how to implement a pre-commit hook
Check whether the code contains copyright
includes
- directory to add copyright.--excludes
- exclude directory.--suffixes
- copyright will be added to files with suffix.