-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR introduces a pre-commit config which is used in our ci pipeline. Furthermore, an additional formatting of all affected resources was done. The following config was used as a baseline: https://github.com/hetznercloud/.github/blob/main/.pre-commit-config.yaml --------- Co-authored-by: Jonas L. <jooola@users.noreply.github.com>
- Loading branch information
1 parent
9e9d983
commit ffaf6ba
Showing
46 changed files
with
1,204 additions
and
1,212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
# 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: v5.0.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: destroyed-symlinks | ||
|
||
- id: check-toml | ||
- id: check-json | ||
- id: check-yaml | ||
args: [--allow-multiple-documents] | ||
exclude: ^(deploy/.*|chart/templates/.*)$ | ||
|
||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: trailing-whitespace | ||
exclude: ^(chart/.snapshots/.*|deploy/.*)$ | ||
|
||
- repo: local | ||
hooks: | ||
- id: update-helm-snapshots | ||
name: update-helm-snapshots | ||
language: system | ||
entry: bash ./hack/update-helm-snapshots.sh | ||
files: ^(charts/.*|hack/update-helm-snapshots.sh$) | ||
pass_filenames: false | ||
|
||
- id: update-deployment-yamls | ||
name: update-deployment-yamls | ||
language: system | ||
entry: bash ./hack/update-deployment-yamls.sh | ||
files: ^(charts/.*|hack/update-deployment-yamls.sh$) | ||
pass_filenames: false | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
files: \.(md|ya?ml|json)$ | ||
exclude: ^(CHANGELOG.md|chart/templates/.*|chart/.snapshots/.*|deploy/.*)$ | ||
|
||
- repo: local | ||
hooks: | ||
- id: shfmt | ||
name: shfmt | ||
description: Format shell scripts with shfmt | ||
language: golang | ||
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.7.0] | ||
entry: shfmt -i 2 -ci -sr -kp -w | ||
types: [shell] | ||
|
||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: v0.10.0.1 | ||
hooks: | ||
- id: shellcheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
.idea/ | ||
*.tmproj | ||
|
||
.snapshots | ||
.snapshots |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.