From ca3d23b870c94b993a90c2a0d9ddd41f43ca0f0f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 11 Apr 2026 23:19:37 +1000 Subject: [PATCH] Remove insert-license hooks from pre-commit config Removed multiple insert-license hooks for various file types. --- .pre-commit-config.yaml | 44 ----------------------------------------- 1 file changed, 44 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 652a5ba2..a16f7436 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,7 @@ --- -# https://pre-commit.com/#installation default_stages: [commit, push] default_language_version: - # force all unspecified Python hooks to run python3 python: python3 -minimum_pre_commit_version: '2.18.1' repos: - repo: meta hooks: @@ -13,47 +10,6 @@ repos: - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 hooks: - - id: insert-license - name: add license for all JavaScript files - files: \.js$ - args: - - --comment-style - - '/*!| *| */' - - --license-filepath - - license-templates/LICENSE.txt - - --fuzzy-match-generates-todo - - --remove-header - - id: insert-license - name: add license for all Markdown files - files: \.(md|mdown|markdown)$ - types: [markdown] - args: - - --comment-style - - '' - - --license-filepath - - license-templates/LICENSE.txt - - --fuzzy-match-generates-todo - - --remove-header - - id: insert-license - name: add license for all Shell files - files: \.bash$|\.sh$ - args: - - --comment-style - - '|#|' - - --license-filepath - - license-templates/LICENSE.txt - - --fuzzy-match-generates-todo - - --remove-header - - id: insert-license - name: add license for all YAML files - files: \.(yml|yaml)$ - args: - - --comment-style - - '|#|' - - --license-filepath - - license-templates/LICENSE.txt - - --fuzzy-match-generates-todo - - --remove-header - id: forbid-tabs exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$ - id: remove-tabs