Skip to content

Commit 9b18ae0

Browse files
authored
Add precommit for license info (#31)
1 parent 8c57a06 commit 9b18ae0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+162
-9
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
github: [c-loftus]
2-
custom: ["https://www.paypal.com/paypalme/coltonloftus"]
5+
custom: ["https://www.paypal.com/paypalme/coltonloftus"]

.github/workflows/docker_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
on:
25
push:
36

.github/workflows/go_lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
name: Go Lint
25

36
on: [push]

.github/workflows/go_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
name: Go Test
25

36
on:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
on:
25
# always trigger a draft release
36
push:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ QuickPiperAudiobook
1515

1616
__debug*
1717

18-
dec.epub
18+
dec.epub

.pre-commit-config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
4+
minimum_pre_commit_version: "2.9.0"
5+
ci:
6+
autoupdate_schedule: monthly
7+
repos:
8+
- repo: meta
9+
hooks:
10+
- id: check-useless-excludes
11+
- repo: local
12+
hooks:
13+
- id: forbid-symlinks
14+
name: Forbid symlinks
15+
entry: Forbid symlinks
16+
language: fail
17+
types: [symlink]
18+
- repo: https://github.com/Lucas-C/pre-commit-hooks
19+
rev: v1.5.5
20+
hooks:
21+
- id: forbid-crlf
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: v5.0.0
24+
hooks:
25+
- id: check-case-conflict
26+
- id: check-executables-have-shebangs
27+
- id: check-merge-conflict
28+
- id: check-shebang-scripts-are-executable
29+
- id: destroyed-symlinks
30+
- id: detect-private-key
31+
exclude_types: [svg]
32+
- repo: https://github.com/google/addlicense
33+
rev: "55a521bf81c24480094950caa3566548fa63875e"
34+
hooks:
35+
- id: addlicense
36+
args: ["-s=only", -l, "AGPL-3.0-only", -c, "Colton Loftus"]

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"args": ["internal/testdata/titlepage_and_2_chapters.epub"],
3131
},
3232
]
33-
}
33+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"editor.formatOnType": true,
33
"explorer.excludeGitIgnore": false,
4-
}
4+
}

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2025 Colton Loftus
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
# This dockerfile can be used to build a binary for use with the QuickPiperAudiobook command.
25
# You can use it for testing, or other architectures that don't have a piper build.
36
# docker build -t quickpiperaudiobook .

0 commit comments

Comments
 (0)