Skip to content

Commit 5005163

Browse files
committed
chore(pre-commit): add black for Python formatting
1 parent e7f894d commit 5005163

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ repos:
1717

1818
# CMake formatting with gersemi
1919
- repo: https://github.com/BlankSpruce/gersemi
20-
rev: 0.21.0
20+
rev: 0.22.1
2121
hooks:
2222
- id: gersemi
2323
files: (\.cmake|CMakeLists\.txt)$
2424

25+
# Python formatting with black
26+
- repo: https://github.com/psf/black
27+
rev: 25.1.0
28+
hooks:
29+
- id: black
30+
files: \.py$
31+
args: ['-S', '--line-length=100', '--target-version=py313']
32+
2533
# Markdown linting and formatting
2634
- repo: https://github.com/DavidAnson/markdownlint-cli2
2735
rev: v0.18.1

0 commit comments

Comments
 (0)