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

41 lines
978 B
YAML
Raw Normal View History

2020-08-14 14:53:30 +02:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2021-01-03 22:08:39 +01:00
rev: v3.4.0
2020-08-14 14:53:30 +02:00
hooks:
- id: check-ast
types: [python]
# - id: check-json
# types: [json]
- id: check-toml
types: [toml]
2020-11-24 22:11:13 +01:00
- id: check-yaml
types: [yaml]
2021-02-06 18:07:51 +01:00
args: [--allow-multiple-documents]
2020-08-14 14:53:30 +02:00
# - 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
2021-01-03 22:08:39 +01:00
rev: 5.7.0
2020-08-14 14:53:30 +02:00
hooks:
- id: isort
types: [python]
- repo: https://github.com/psf/black
2020-09-05 09:09:59 +02:00
rev: 20.8b1
2020-08-14 14:53:30 +02:00
hooks:
- id: black
types: [python]
2021-02-20 18:00:45 +01:00
# - repo: https://gitlab.com/devopshq/gitlab-ci-linter
# rev: v1.0.1
# hooks:
# - id: gitlab-ci-linter
# args:
# - --server
# - https://gitlab.com