Skip to content

Commit cff93b0

Browse files
authored
pre-commit: add insert-license hook for Markdown files (#408)
Add `license-templates` folder. https://github.com/Lucas-C/pre-commit-hooks
1 parent aa5d9a0 commit cff93b0

24 files changed

+15585
-7
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/custom.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/join_core_team.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/join_doc_team.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.github/ISSUE_TEMPLATE/join_web_team.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

.pre-commit-config.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ repos:
1010
hooks:
1111
- id: identity
1212
- id: check-hooks-apply
13+
- repo: https://github.com/Lucas-C/pre-commit-hooks
14+
rev: v1.3.1
15+
hooks:
16+
- id: insert-license
17+
name: Add license for all Markdown files
18+
files: \.(md|mdown|markdown)$
19+
types: [markdown]
20+
args:
21+
- --comment-style
22+
- '<!--|| -->'
23+
- --license-filepath
24+
- license-templates/LICENSE.txt
25+
- --fuzzy-match-generates-todo
26+
- id: forbid-tabs
27+
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
28+
- id: remove-tabs
29+
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
1330
- repo: https://github.com/pre-commit/pre-commit-hooks
1431
rev: v4.3.0
1532
hooks:
@@ -26,13 +43,6 @@ repos:
2643
- id: fix-byte-order-marker
2744
- id: mixed-line-ending
2845
- id: trailing-whitespace
29-
- repo: https://github.com/Lucas-C/pre-commit-hooks
30-
rev: v1.3.1
31-
hooks:
32-
- id: forbid-tabs
33-
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
34-
- id: remove-tabs
35-
exclude: \.c$|\.h$|\.one$|Makefile$|^src/ast/ast-structure\.txt$
3646
- repo: https://github.com/codespell-project/codespell
3747
rev: v2.2.2
3848
hooks:

CONTRIBUTING.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

CONTRIBUTORS.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

MISSION_STATEMENT.md

Lines changed: 677 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)