The only way we could get it to work as a pre-commit hook with a directory specified was with pass_filenames: false. The settings:
- repo: https://github.com/johann-petrak/licenseheaders.git
rev: '8e2d6f944aea639d62c8d26cd99dab4003c3904d'
hooks:
- id: licenseheaders
args: [ "-t", "copyright.tmpl", "-d", "./src/"]
language_version: python3.9
pass_filenames: false
Hope this helps someone!
The only way we could get it to work as a pre-commit hook with a directory specified was with
pass_filenames: false. The settings:Hope this helps someone!