Add base pre-commit-config

This commit is contained in:
Tyler Perkins 2023-12-04 18:23:15 -05:00
parent 56108ba730
commit a7a15660d5
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
3 changed files with 27 additions and 2 deletions

1
.gitignore vendored
View File

@ -18,4 +18,3 @@ Sessionx.vim
tags
# Persistent undo
[._]*.un~

26
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,26 @@
# 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: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-xml
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: check-case-conflict
- id: pretty-format-json
- id: check-symlinks
- id: detect-private-key
- id: sort-simple-yaml
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: remove-crlf
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.2
hooks:
- id: check-drone-ci