diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index aec47c9..9a8afad 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,27 +1,27 @@ - id: add-headers name: Add copyright headers description: Adds missing copyright headers to all source code files - entry: go run . + entry: copywrite headers language: golang - args: [headers] + pass_filenames: false - id: check-headers name: Validate copyright headers description: Checks if any copyright headers are missing, but does not make changes - entry: go run . + entry: copywrite headers --plan language: golang - args: [headers --plan] + pass_filenames: false - id: add-license name: Add or fix repo license description: Adds or updates a non-compliant LICENSE file - entry: go run . + entry: copywrite license language: golang - args: [license] + pass_filenames: false - id: check-license name: Validate repo license description: Checks if a LICENSE file is valid, but does not make changes - entry: go run . + entry: copywrite license --plan language: golang - args: [license --plan] + pass_filenames: false