Enforce some coding standards for the contributers
parent
e290af4eec
commit
9ac6a6ab96
|
|
@ -0,0 +1,35 @@
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
---
|
||||||
|
# fail_fast: true
|
||||||
|
minimum_pre_commit_version: 1.18.1
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v2.3.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-docstring-first
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
- id: double-quote-string-fixer
|
||||||
|
- id: forbid-new-submodules
|
||||||
|
- id: mixed-line-ending
|
||||||
|
- id: check-added-large-files
|
||||||
|
- repo: https://github.com/jumanjihouse/pre-commit-hooks
|
||||||
|
rev: 1.11.0
|
||||||
|
hooks:
|
||||||
|
- id: forbid-binary
|
||||||
|
- id: git-check # Configure in .gitattributes
|
||||||
|
- id: git-dirty # Configure in .gitignore
|
||||||
|
- id: markdownlint # Configure in .mdlrc
|
||||||
|
- id: shellcheck
|
||||||
|
- id: shfmt
|
||||||
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
||||||
|
rev: v1.1.7
|
||||||
|
hooks:
|
||||||
|
# - id: forbid-crlf
|
||||||
|
- id: remove-crlf
|
||||||
|
# - id: forbid-tabs
|
||||||
|
- id: remove-tabs
|
||||||
|
args: [--whitespaces-count, '2'] # defaults to: 4
|
||||||
Loading…
Reference in New Issue