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

88 lines
2.2 KiB
YAML
Raw Normal View History

exclude: (\.min\.(js|css)(\.map)?$|/vendor/)
2022-09-28 00:02:03 +02:00
ci:
skip: [mypy]
2020-08-14 14:53:30 +02:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-09-23 22:45:29 +02:00
rev: v4.3.0
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
2022-09-23 22:45:29 +02:00
args:
- --profile=black
2020-08-14 14:53:30 +02:00
- repo: https://github.com/psf/black
2022-09-23 22:45:29 +02:00
rev: 22.8.0
2020-08-14 14:53:30 +02:00
hooks:
- id: black
2022-09-23 22:45:29 +02:00
args:
- -t
- py310
- repo: https://github.com/asottile/pyupgrade
2022-09-23 22:45:29 +02:00
rev: v2.38.0
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/adamchainz/django-upgrade
2022-09-23 22:45:29 +02:00
rev: 1.10.0
hooks:
- id: django-upgrade
2022-09-23 22:45:29 +02:00
args: [--target-version, "4.1"]
- repo: https://github.com/rtts/djhtml
2022-09-23 22:45:29 +02:00
rev: v1.5.2
hooks:
- id: djhtml
2022-02-24 20:38:43 +01:00
- repo: https://github.com/flakeheaven/flakeheaven
2022-09-23 22:45:29 +02:00
rev: 3.0.0
hooks:
2022-02-24 20:38:43 +01:00
- id: flakeheaven
additional_dependencies:
2021-12-29 10:40:48 +01:00
- flake8-annotations-complexity
- flake8-builtins
2021-12-29 10:40:48 +01:00
- flake8-bugbear
- flake8-comprehensions
- flake8-eradicate
2021-12-29 10:40:48 +01:00
- flake8-noqa
- flake8-pytest-style
2021-12-29 10:40:48 +01:00
- flake8-pyi
- wemake-python-styleguide
- repo: https://github.com/pre-commit/mirrors-prettier
2022-09-23 22:45:29 +02:00
rev: v3.0.0-alpha.0
hooks:
- id: prettier
types_or: [javascript, css]
- repo: https://github.com/pre-commit/mirrors-eslint
2022-09-24 16:30:33 +02:00
rev: v8.24.0
hooks:
- id: eslint
args: [--fix]
types_or: [javascript, css]
additional_dependencies:
2022-09-23 22:45:29 +02:00
- eslint
- eslint-config-prettier
2021-12-29 16:19:31 +01:00
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
2021-12-29 16:25:56 +01:00
types_or: [python, pyi]