1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[5.0.x] Refs #34140 -- Fixed blacken-docs pre-commit configuration.

Missed in 6015bab80e. 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 of d89a465e62 from main
This commit is contained in:
Adam Johnson
2024-01-04 04:35:46 +00:00
committed by Mariusz Felisiak
parent abcd99244f
commit 45fae65672

View File

@@ -10,6 +10,7 @@ repos:
- id: blacken-docs
additional_dependencies:
- black==23.10.0
files: 'docs/.*\.txt$'
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks: