Enforce some coding standards for the contributers

pull/1624/head
Ira Abramov 2019-10-15 14:34:32 +03:00 committed by Noah Gorny
parent e290af4eec
commit 9ac6a6ab96
1 changed files with 35 additions and 0 deletions

View File

@ -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