mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-02-06 02:46:53 +00:00
* Introduce patches with external kafka * Fix pre-commit hooks * Patch relay config file * Documentation for patches stuff * Provide more helpful information for Docker Compose Override file * Fix grep command * ref: rename to 'optional-modifications' * chore(pre-commit): exclude .patch extension * chore(pre-commit): escape backslash * chore(pre-commit): put exclude field on hooks * chore(pre-commit): put exclude field on top level Based on https://pre-commit.com/#top_level-exclude * chore(pre-commit): move to even more top level
25 lines
723 B
YAML
25 lines
723 B
YAML
exclude: '\.patch$'
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
# Based on https://github.com/scop/pre-commit-shfmt/blob/main/.pre-commit-hooks.yaml
|
|
# Customized to also work on ARM, and give diff for CI on failure.
|
|
- id: shfmt
|
|
name: shfmt
|
|
description: Format shell source code
|
|
language: docker_image
|
|
entry: --net none mvdan/shfmt:v3.5.1
|
|
args: [-w, -d]
|
|
files: .*\.sh
|
|
stages: [commit, merge-commit, push, manual]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: check-yaml
|