在提交前更新版权信息
项目描述
在提交前更新版权头部信息
pre-commit钩子用于检查版权是否最新(使用Git历史记录)。
添加到.pre-commit-config.yaml
repos:
- repo: https://github.com/sbrunner/pre-commit-copyright
rev: <version> # Use the ref you want to point at
hooks:
- id: copyright