From da023c9e9c2e2fe5d2b829f32ec493f21ec6820a Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sun, 10 Dec 2023 00:30:42 +0000 Subject: [PATCH] Initial commit --- .drone.yml | 13 +++++ .gitignore | 20 +++++++ .pre-commit-config.yaml | 29 +++++++++ README.md | 3 + setup.sh | 126 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 191 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 README.md create mode 100755 setup.sh diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..53da16b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,13 @@ +kind: pipeline +type: docker +name: build-and-release + +steps: + - name: build + image: alpine + commands: + - echo "Build your code!" + - name: release + image: alpine + commands: + - echo "Release your code!" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5595571 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# ---> Vim +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0dbaab5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-xml + - id: check-json + - id: check-toml + - id: check-added-large-files + - id: check-case-conflict + - id: pretty-format-json + args: + - "--autofix" + - "--no-sort-keys" + - id: check-symlinks + - id: detect-private-key + - id: sort-simple-yaml +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.4 + hooks: + - id: remove-crlf +- repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.27.2 + hooks: + - id: check-drone-ci diff --git a/README.md b/README.md new file mode 100644 index 0000000..a07e2af --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Generic-Template + +Bsaic Template Repository with workflow items present. diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..b538f0e --- /dev/null +++ b/setup.sh @@ -0,0 +1,126 @@ +#!/bin/bash +# +# Generic script to setup the repository for local development + +echo "Installing pre-commit" +pip install pre-commit +pre-commit install + +echo "Installing commit-msg" + +HOOK_LOCATION=".git/hooks/commit-msg" +VERB_LOCATION=".git/hooks/verbs.txt" + +cat << 'EOF' > "$HOOK_LOCATION" +#!/bin/sh +# +# Git hook to check for semantic commit messages in the form mentioned here + +export VERB=$(cut -d ' ' -f1 < "$1") +(grep "$VERB" .git/hooks/verbs.txt > /dev/null) || (echo "Missing a verb"; exit 1) +EOF + +chmod +x $HOOK_LOCATION + +cat << 'EOF' > "$VERB_LOCATION" +Add +Update +Fix +Refactor +Remove +Implement +Enhance +Optimize +Revise +Adjust +Modify +Rewrite +Improve +Correct +Debug +Delete +Replace +Create +Design +Develop +Build +Configure +Resolve +Patch +Extend +Reduce +Increase +Simplify +Merge +Split +Release +Deploy +Test +Validate +Format +Organize +Reorganize +Rename +Repackage +Refine +Rework +Expand +Collapse +Integrate +Extract +Introduce +Finalize +Prepare +Generate +Convert +Upload +Download +Sync +Encrypt +Decrypt +Authenticate +Authorize +Invalidate +Sanitize +Analyze +Inspect +Probe +Examine +Index +Compress +Decompress +Archive +Restore +Save +Load +Export +Import +Visualize +Illustrate +Diagram +Plot +Map +Scan +Seek +Find +Discover +Track +Monitor +Observe +Watch +Alert +Notify +Log +Record +Report +Summarize +Detail +Document +Annotate +Comment +Explain +Clarify +Define +Enumerate +Stabilize +EOF