mirror of
https://gitlab.com/vylion/velascobot.git
synced 2025-04-19 21:46:35 +02:00
Add .precommit config for repository
This commit is contained in:
parent
950bbfbabd
commit
f8971c06dc
2 changed files with 55 additions and 0 deletions
5
.flake8
Normal file
5
.flake8
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[flake8]
|
||||||
|
ignore = E203, E266, E501, W503, F403, F401, E402, E722, C901
|
||||||
|
max-line-length = 79
|
||||||
|
max-complexity = 18
|
||||||
|
select = B,C,E,F,W,T4,B9
|
50
.pre-commit-config.yaml
Normal file
50
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
fail_fast: true
|
||||||
|
repos:
|
||||||
|
- repo: meta
|
||||||
|
hooks:
|
||||||
|
- id: check-useless-excludes
|
||||||
|
- repo: https://github.com/prettier/prettier
|
||||||
|
rev: 1.19.1
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
files: \.(css|js|md|markdown|json)
|
||||||
|
- repo: https://github.com/python/black
|
||||||
|
rev: 19.10b0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v2.4.0
|
||||||
|
hooks:
|
||||||
|
- id: check-added-large-files
|
||||||
|
- id: check-ast
|
||||||
|
- id: check-case-conflict
|
||||||
|
- id: check-executables-have-shebangs
|
||||||
|
- id: check-json
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-symlinks
|
||||||
|
- id: check-vcs-permalinks
|
||||||
|
- id: check-xml
|
||||||
|
- id: check-yaml
|
||||||
|
args: [--unsafe]
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: fix-encoding-pragma
|
||||||
|
- id: forbid-new-submodules
|
||||||
|
- id: no-commit-to-branch
|
||||||
|
args: [--branch, next]
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
- id: sort-simple-yaml
|
||||||
|
- id: trailing-whitespace
|
||||||
|
# - repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
# rev: v1.2.3
|
||||||
|
# hooks:
|
||||||
|
# - id: flake8
|
||||||
|
- repo: https://github.com/pecigonzalo/pre-commit-shfmt.git
|
||||||
|
rev: master
|
||||||
|
hooks:
|
||||||
|
- id: shell-fmt
|
||||||
|
args:
|
||||||
|
- --indent=4
|
||||||
|
- repo: https://github.com/asottile/blacken-docs
|
||||||
|
rev: master
|
||||||
|
hooks:
|
||||||
|
- id: blacken-docs
|
Loading…
Reference in a new issue