newsreader/.pre-commit-config.yaml
2019-08-18 11:49:04 +02:00

39 lines
913 B
YAML

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.7
repos:
- repo: local
hooks:
- id: autoflake
name: autoflake
entry: autoflake
language: system
types: [python]
args: ["--in-place", "--remove-unused-variables"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: pretty-format-json
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
args: [--line-length=90]
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21-2
hooks:
- id: isort
- repo: https://github.com/prettier/prettier
rev: 1.18.2
hooks:
- id: prettier