mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-01-13 21:31:03 +00:00
chore: setup pre-commit
This commit is contained in:
parent
043c73cf7d
commit
9fc97a2421
5 changed files with 61 additions and 7 deletions
57
.pre-commit-config.yaml
Normal file
57
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# 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: v4.6.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-case-conflict
|
||||
- id: check-symlinks
|
||||
- id: destroyed-symlinks
|
||||
|
||||
- id: check-json
|
||||
- id: check-yaml
|
||||
- id: check-toml
|
||||
|
||||
- id: check-merge-conflict
|
||||
- id: end-of-file-fixer
|
||||
- id: mixed-line-ending
|
||||
- id: trailing-whitespace
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v3.1.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
files: \.(md|ya?ml)$
|
||||
exclude: CHANGELOG.md
|
||||
|
||||
- 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
|
||||
|
||||
- repo: https://github.com/golangci/golangci-lint
|
||||
rev: v1.58.2
|
||||
hooks:
|
||||
- id: golangci-lint-full
|
||||
name: golangci-lint cli
|
||||
exclude: hcloudimages/
|
||||
- id: golangci-lint-full
|
||||
name: golangci-lint lib
|
||||
files: hcloudimages/
|
||||
|
||||
- repo: https://github.com/dnephin/pre-commit-golang
|
||||
rev: v0.5.1
|
||||
hooks:
|
||||
- id: go-mod-tidy
|
||||
Loading…
Add table
Add a link
Reference in a new issue