Skip to content

[Info] Using the pre-commit hook #74

Description

@szemyd

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions