mirror of
https://github.com/django/django.git
synced 2024-12-26 11:06:07 +00:00
45fae65672
Missed in6015bab80e
. The default blacken-docs hook definition does not apply to .txt files, which the Django documentation uses. This commit overrides that definition to point blacken-docs at the appropriate files. Backport ofd89a465e62
from main
26 lines
602 B
YAML
26 lines
602 B
YAML
repos:
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 23.10.0
|
|
hooks:
|
|
- id: black
|
|
exclude: \.py-tpl$
|
|
- repo: https://github.com/adamchainz/blacken-docs
|
|
rev: 1.16.0
|
|
hooks:
|
|
- id: blacken-docs
|
|
additional_dependencies:
|
|
- black==23.10.0
|
|
files: 'docs/.*\.txt$'
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.1.0
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: v8.52.0
|
|
hooks:
|
|
- id: eslint
|