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

47 lines
1.1 KiB
YAML
Raw Normal View History

exclude: \.min\.(js|css)(\.map)?$
2020-08-14 14:53:30 +02:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
2020-08-14 14:53:30 +02:00
hooks:
- id: check-ast
- id: check-json
2020-08-14 14:53:30 +02:00
- id: check-toml
- id: check-xml
2020-11-24 22:11:13 +01:00
- id: check-yaml
2021-02-06 18:07:51 +01:00
args: [--allow-multiple-documents]
2020-08-14 14:53:30 +02:00
- id: end-of-file-fixer
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
2020-08-14 14:53:30 +02:00
- 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.10.1
2020-08-14 14:53:30 +02:00
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 21.12b0
2020-08-14 14:53:30 +02:00
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.1
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-noqa
- flake8-bugbear
- flake8-builtins
- flake8-comprehensions
- flake8-eradicate