aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-25 15:09:35 +0200
committernea <nea@nea.moe>2023-08-25 15:09:35 +0200
commit91df2a9a6e7ae7e8f0e1bceebbf2790d1f2aafef (patch)
tree3ab46e7b20b5cf5e185964bba961f8c4612c40d0
parentddc00804f1d2f909eae4461fb8d2e7571be107fc (diff)
downloadFirmament-91df2a9a6e7ae7e8f0e1bceebbf2790d1f2aafef.tar.gz
Firmament-91df2a9a6e7ae7e8f0e1bceebbf2790d1f2aafef.tar.bz2
Firmament-91df2a9a6e7ae7e8f0e1bceebbf2790d1f2aafef.zip
Add pre-commit hook
-rw-r--r--.pre-commit-config.yaml9
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MixinKeyBinding.java6
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MixinKeybindsScreen.java6
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/config/KeyBindingHandler.kt6
-rw-r--r--src/main/kotlin/moe/nea/firmament/keybindings/SavedKeyBinding.kt6
5 files changed, 33 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644
index 0000000..091e35e
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,9 @@
+# SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+#
+# SPDX-License-Identifier: CC0-1.0
+
+repos:
+ - repo: https://github.com/fsfe/reuse-tool
+ rev: v1.0.0
+ hooks:
+ - id: reuse
diff --git a/src/main/java/moe/nea/firmament/mixins/MixinKeyBinding.java b/src/main/java/moe/nea/firmament/mixins/MixinKeyBinding.java
index c057a93..f77caf5 100644
--- a/src/main/java/moe/nea/firmament/mixins/MixinKeyBinding.java
+++ b/src/main/java/moe/nea/firmament/mixins/MixinKeyBinding.java
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
package moe.nea.firmament.mixins;
import moe.nea.firmament.features.fixes.Fixes;
diff --git a/src/main/java/moe/nea/firmament/mixins/MixinKeybindsScreen.java b/src/main/java/moe/nea/firmament/mixins/MixinKeybindsScreen.java
index 23bc26c..3a17983 100644
--- a/src/main/java/moe/nea/firmament/mixins/MixinKeybindsScreen.java
+++ b/src/main/java/moe/nea/firmament/mixins/MixinKeybindsScreen.java
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
package moe.nea.firmament.mixins;
import moe.nea.firmament.gui.config.ManagedConfig;
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/KeyBindingHandler.kt b/src/main/kotlin/moe/nea/firmament/gui/config/KeyBindingHandler.kt
index 5a4e3af..11c9c7a 100644
--- a/src/main/kotlin/moe/nea/firmament/gui/config/KeyBindingHandler.kt
+++ b/src/main/kotlin/moe/nea/firmament/gui/config/KeyBindingHandler.kt
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
package moe.nea.firmament.gui.config
import io.github.cottonmc.cotton.gui.widget.WButton
diff --git a/src/main/kotlin/moe/nea/firmament/keybindings/SavedKeyBinding.kt b/src/main/kotlin/moe/nea/firmament/keybindings/SavedKeyBinding.kt
index f73eb49..e0f0c50 100644
--- a/src/main/kotlin/moe/nea/firmament/keybindings/SavedKeyBinding.kt
+++ b/src/main/kotlin/moe/nea/firmament/keybindings/SavedKeyBinding.kt
@@ -1,3 +1,9 @@
+/*
+ * SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
package moe.nea.firmament.keybindings
import kotlinx.serialization.Serializable