Commit 85662a9
2023-12-28 14:30:02
Changed files (3)
.gitignore
@@ -0,0 +1,2 @@
+.env
+swissknife
.pre-commit-config.yaml
@@ -0,0 +1,37 @@
+---
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v4.5.0
+ hooks:
+ - id: trailing-whitespace
+ - id: end-of-file-fixer
+ - id: check-yaml
+ - id: check-added-large-files
+ - id: check-case-conflict
+ - id: check-executables-have-shebangs
+ - id: check-json
+ - id: check-shebang-scripts-are-executable
+ - id: check-toml
+ - id: detect-private-key
+ - id: fix-byte-order-marker
+ - id: mixed-line-ending
+ # ----------------------- OPS -----------------------
+ - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
+ rev: 0.2.3
+ hooks:
+ - id: yamlfmt
+ args: [--mapping, "2", --sequence, "4", --offset, "2", --width, "150", --preserve-quotes]
+ exclude: ^.github/dependabot.yml
+ # ----------------------- GOLANG -----------------------
+ - repo: https://github.com/dnephin/pre-commit-golang
+ rev: v0.5.1
+ hooks:
+ - id: go-fmt
+ - id: go-vet
+ - id: go-imports
+ # - id: no-go-testing
+ - id: golangci-lint
+ # - id: go-critic
+ # - id: go-unit-tests
+ - id: go-build
+ - id: go-mod-tidy
README.md
@@ -0,0 +1,5 @@
+# Swissknife
+
+๐จ๐ญ๐ช
+
+Because I'm too lazy to remember all the commands.