2022-08-11 14:49:47 +03:00
|
|
|
# pre-commit for deployment related resources
|
|
|
|
# e.g. shell files, dockerfiles, helm chart etc..
|
2022-04-01 10:56:47 +03:00
|
|
|
repos:
|
2022-08-11 14:49:47 +03:00
|
|
|
- repo: https://github.com/hadolint/hadolint
|
|
|
|
rev: 'v2.10.0'
|
2022-04-01 10:56:47 +03:00
|
|
|
hooks:
|
2022-08-11 14:49:47 +03:00
|
|
|
- id: hadolint
|
|
|
|
# Cannot use official repo as it relies on Docker, which cannot be supported by either pre-commit.ci or CircleCI
|
|
|
|
- repo: https://github.com/Jarmos-san/shellcheck-precommit
|
|
|
|
rev: 'v0.2.0'
|
|
|
|
hooks:
|
|
|
|
- id: shellcheck-system
|
2022-12-09 14:20:45 +03:00
|
|
|
name: shellcheck
|
2022-04-05 17:18:17 +03:00
|
|
|
|
2022-08-23 11:18:40 +03:00
|
|
|
- repo: https://github.com/syntaqx/git-hooks
|
|
|
|
rev: 'v0.0.17'
|
|
|
|
hooks:
|
|
|
|
- id: circleci-config-validate
|
|
|
|
|
2022-10-25 15:41:00 +03:00
|
|
|
- repo: https://github.com/specklesystems/pre-commit
|
|
|
|
rev: '0.2.0'
|
|
|
|
hooks:
|
|
|
|
- id: ggshield-not-ci
|
|
|
|
|
2022-12-09 14:20:45 +03:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: '22.10.0'
|
|
|
|
hooks:
|
|
|
|
- id: black # python formatter
|
|
|
|
name: black (python formatter)
|
|
|
|
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
|
|
rev: v0.0.170
|
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
name: ruff (python linter)
|
|
|
|
args:
|
|
|
|
- --ignore=E501 # ignoring error about lines that are too long
|
|
|
|
|
2023-05-12 15:26:28 +03:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: helm-documentation
|
2023-06-01 23:43:22 +03:00
|
|
|
name: Helm Json Schema
|
2023-05-12 15:26:28 +03:00
|
|
|
language: system
|
2024-07-10 12:33:53 +03:00
|
|
|
files: utils\/helm\/speckle\-server\/values\.yaml
|
2023-05-12 15:26:28 +03:00
|
|
|
entry: utils/helm/update-schema-json.sh
|
|
|
|
description: If this fails it is because the values.yaml file was updated. Or has missing or incorrect documentation.
|
|
|
|
|
2024-06-25 20:12:03 +03:00
|
|
|
# helmlint should occur after the json schema is updated
|
|
|
|
- repo: https://github.com/gruntwork-io/pre-commit
|
|
|
|
rev: 'v0.1.17'
|
|
|
|
hooks:
|
|
|
|
- id: helmlint
|
|
|
|
|
2022-04-13 13:58:21 +03:00
|
|
|
ci:
|
|
|
|
autoupdate_schedule: quarterly
|