summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2024-01-04 04:35:46 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-01-26 12:49:18 +0100
commit45fae65672e7a1133c378416cfeb4c9af285ab88 (patch)
tree9688d41f18e13a0130e4c0dacaeea13871c97166
parentabcd99244fa1ab38e65b6c8a6cefe00baf7b53ea (diff)
[5.0.x] Refs #34140 -- Fixed blacken-docs pre-commit configuration.
Missed in 6015bab80e28aef2669f6fac53423aa65f70cb08. 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 d89a465e62ad876cc7f1332d1712700cb81f3995 from main
-rw-r--r--.pre-commit-config.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6304b41cc9..d42a0dd212 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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: