diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..147abfb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false ; trimming trailing whitespace may break Markdown + +[Makefile] +tab_width = 2 +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af28d62 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +.bundle +.kitchen +.terraform +.terraform-data.json +.vscode +*.auto.tfvars* +inspec.lock +outputs.json +terraform.tfvars* +terraform.tfstate* +tfplan +vendor diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..93db063 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,33 @@ +exclude: '.terraform' +fail_fast: true + +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks.git + rev: v2.3.0 + hooks: + - id: check-added-large-files + args: [--maxkb=5000] + - id: check-byte-order-marker + - id: check-case-conflict + - id: check-json + - id: check-merge-conflict + - id: check-symlinks + - id: check-yaml + args: [--allow-multiple-documents] + - id: detect-aws-credentials + args: [--allow-missing-credentials] + - id: detect-private-key + - id: mixed-line-ending + args: [--fix=lf] + - id: pretty-format-json + args: [--autofix, --indent=2, --no-ensure-ascii] + - id: trailing-whitespace + +- repo: https://github.com/antonbabenko/pre-commit-terraform.git + sha: v1.17.0 + hooks: + - id: terraform_fmt + +- repo: local + hooks: + - id: test