OLive/.pre-commit-config.yaml

43 строки
1022 B
YAML
Исходник Обычный вид История

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-yaml
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 24.1.0
hooks:
- id: black
name: Format code
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: Format imports
- repo: https://github.com/MarcoGorelli/absolufy-imports
rev: v0.3.1
hooks:
- id: absolufy-imports
exclude: examples/
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.0
hooks:
- id: ruff
args: [ --fix ]
2024-07-25 18:16:36 +03:00
- repo: local
hooks:
- id: format-json
name: Format JSON
language: python
entry: python scripts/format_json.py
files: \.(json)$
args: [
'--indent=4',
'--max-line-length=120'
]