From 2393ed68dfc2ef82918a10e7a9e650fd2e9a0596 Mon Sep 17 00:00:00 2001 From: Jelloeater Date: Thu, 22 Aug 2024 22:08:58 -0400 Subject: [PATCH] Added repo helpers --- .editorconfig | 16 ++++++++++++++++ .gitignore | 21 +++++++++++++++++++++ .pre-commit-config.yaml | 21 +++++++++++++++++++++ LICENSE | 21 +++++++++++++++++++++ README.md | 1 + Taskfile.yaml | 17 +++++++++++++++++ codeowners | 4 ++++ 7 files changed, 101 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 LICENSE create mode 100644 README.md create mode 100644 Taskfile.yaml create mode 100644 codeowners diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e31e681 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# http://editorconfig.org/#file-format-details +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2f59008 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +.idea/* +cmake-build-*/ +.idea/**/mongoSettings.xml +*.iws +out/ +.idea_modules/ +atlassian-ide-plugin.xml +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties +.idea/httpRequests +.idea/caches/build_file_checksums.ser +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.test +*.out +go.work diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..643ff5b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +# See https://pre-commit.com/ for usage and config + +# Install Hooks +# pip install pre-commit +# pip install --upgrade pre-commit +# pre-commit install + +# Remove hooks +# pre-commit uninstall +# rm .git/hooks -rf + +repos: + - repo: local + hooks: + - id: format + name: Commit + stages: [ commit ] + language: system + entry: gofmt . + pass_filenames: false + verbose: false diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c9b46a5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Jelloeater + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..54a15b7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Stampy diff --git a/Taskfile.yaml b/Taskfile.yaml new file mode 100644 index 0000000..432fb86 --- /dev/null +++ b/Taskfile.yaml @@ -0,0 +1,17 @@ +version: '3' + +tasks: + default: + cmds: + - task --list-all + silent: true + install-hooks: + cmds: + - pip install pre-commit + - pip install --upgrade pre-commit + - pre-commit install + remove-hooks: + ignore_error: true + cmds: + - pre-commit uninstall + - rm .git/hooks -rf diff --git a/codeowners b/codeowners new file mode 100644 index 0000000..41c2c48 --- /dev/null +++ b/codeowners @@ -0,0 +1,4 @@ +# Use this file to define individuals or teams that are responsible for code in a repository. +# Read more: +# Order is important: the last matching pattern has the highest precedence +* @jelloeater