From 65b017942fba418efbe69ae681dffa4363c03b57 Mon Sep 17 00:00:00 2001 From: Philip Top Date: Sat, 21 Dec 2024 08:05:05 -0800 Subject: [PATCH] update pre-commit to add some python stuff --- .pre-commit-config.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3592cfec..32120a3d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,16 @@ repos: rev: v4.0.0-alpha.8 hooks: - id: prettier + - repo: https://github.com/psf/black + rev: 24.10.0 + hooks: + - id: black + args: ["--line-length=100"] + - repo: https://github.com/asottile/blacken-docs + rev: 1.19.1 + hooks: + - id: blacken-docs + additional_dependencies: [black==24.10] - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.5.5 hooks: @@ -47,7 +57,7 @@ repos: - id: end-of-file-fixer - id: check-shebang-scripts-are-executable - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.4 + rev: v19.1.5 hooks: - id: clang-format types_or: [c++, c]