]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add black dependency for format_docs_code
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 May 2025 13:49:33 +0000 (09:49 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 May 2025 13:49:33 +0000 (09:49 -0400)
this doesnt run if black is not installed, so use a python
env for it

Change-Id: I567d454917e7e8e4be2b7a21ffc511900f16457c

.pre-commit-config.yaml

index 1d58505b79f1c9149caab9d45047c26d4241a2bd..35e10ee29d20901eb5d298d4855bc11b763d7a3c 100644 (file)
@@ -33,6 +33,8 @@ repos:
     -   id: black-docs
         name: Format docs code block with black
         entry: python tools/format_docs_code.py -f
-        language: system
+        language: python
         types: [rst]
         exclude: README.*
+        additional_dependencies:
+            - black==24.10.0