This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/.pre-commit-config.yaml

31 lines
706 B
YAML
Raw Normal View History

2020-08-14 14:53:30 +02:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-ast
types: [python]
# - id: check-json
# types: [json]
- id: check-toml
types: [toml]
# - id: check-xml
# types: [xml]
- id: end-of-file-fixer
- id: pretty-format-json
args:
- --autofix
- --no-sort-keys
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/timothycrosley/isort
rev: 5.4.1
hooks:
- id: isort
types: [python]
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
types: [python]