style: Add black pre-commit hook (#2811)

This commit is contained in:
Ayaz Salikhov
2025-11-25 17:13:29 +00:00
committed by GitHub
parent 391e7b07ab
commit 7681c58a3a
4 changed files with 68 additions and 52 deletions

View File

@@ -58,6 +58,11 @@ repos:
--ignore-words=pre-commit-hooks/codespell_ignore.txt,
]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
hooks:
- id: black
# Running some C++ hooks before clang-format
# to ensure that the style is consistent.
- repo: local