Skip to content

Commit

Permalink
Add pre-commit configuration (nginx#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored and coolbry95 committed Nov 18, 2022
1 parent d253d11 commit 04def24
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: docs/_vendor/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-ast
- id: check-added-large-files
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: [--fix=lf]
- id: name-tests-test
- id: no-commit-to-branch
- id: requirements-txt-fixer
- id: fix-byte-order-marker
- repo: https://github.com/golangci/golangci-lint
rev: v1.50.1
hooks:
- id: golangci-lint
- repo: https://github.com/asottile/pyupgrade
rev: v3.2.0
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.18.4
hooks:
- id: check-jsonschema
name: "Check Helm Chart JSON Schema"
files: deployments/helm-chart/values.yaml
types: [yaml]
args: ['--schemafile', 'deployments/helm-chart/values.schema.json']

0 comments on commit 04def24

Please sign in to comment.