Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invading the RKE2 installer script for some improvements #75

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
55 changes: 55 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4

[*.{c,h,cpp}]

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8

# 4 space indentation by tab
[*.py]
indent_style = tab
indent_size = 4

# Tab indentation (no size specified)
[Makefile*]
indent_style = tab

# Indentation override for all JS under lib directory
[lib/**.js]
indent_style = tab
indent_size = 2

[.gitconfig]
indent_style = tab
indent_size = 2

[Vagrantfile]
indent_style = tab
indent_size = 2

# Matches the exact files either package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = spaces
indent_size = 2

# Standards I like
[{*.groovy,*.rb,*.sh,.bash*}]
indent_style = tab
indent_size = 4

# Standards I'm forced to...
[{*.md,*.MD,*.yaml,*.yml}]
indent_style = spaces
indent_size = 2
43 changes: 41 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,52 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
# fail_fast: true
minimum_pre_commit_version: 1.18.1
# exclude: docs/_build/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: trailing-whitespace # trims trailing whitespace.
- id: requirements-txt-fixer
exclude: ".(md|rst)$"
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
- id: check-ast # simply checks whether the files parse as valid python.
- id: check-merge-conflict # checks for files that contain merge conflict strings.
- id: check-symlinks # checks for symlinks which do not point to anything.
- id: check-added-large-files # prevents giant files from being committed.
args: ["--maxkb=4096"]
- id: check-builtin-literals
- id: check-case-conflict
- id: check-toml # checks toml files for parseable syntax.
- id: check-docstring-first # checks a common error of defining a docstring after code.
- id: check-executables-have-shebangs # ensures that (non-binary) executables have a shebang.
- id: check-shebang-scripts-are-executable
- id: check-yaml # checks yaml files for parseable syntax.
- id: debug-statements # checks for debugger imports and py37+ `breakpoint()` calls in python source.
- id: destroyed-symlinks # detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to.
- id: detect-private-key # detects the presence of private keys.
- id: mixed-line-ending # replaces or checks mixed line ending.
args: ["--fix=lf"]

- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v3.0.1
hooks:
- id: docker-compose-check

- repo: https://github.com/pre-commit/pre-commit
rev: v3.5.0
hooks:
- id: validate_manifest

- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
#- id: git-check # Configure in .gitattributes
- id: shellcheck
# exclude: ".bats$"
- id: shfmt
# exclude: ".bats$"
Loading