From 381c08bea80057510e3ed2d9cca7bf28d181068c Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 12 Feb 2024 13:43:55 +0100 Subject: [PATCH] Add configuration for black formatting of python sources --- .pre-commit-config.yaml | 4 ++++ pyproject.toml | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 pyproject.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fbb3d590..d2d44d7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,3 +23,7 @@ repos: "-x", ".github/*", ".pre-commit-config.yaml", "README.md", "doc/ReleaseNotes.md", ".k4fwcore-ci.d/*", "-f"] + - repo: https://github.com/psf/black + rev: 23.11.0 + hooks: + - id: black diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..466e9b9c --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[tool.black] +line-length = 99 +target-version = ["py310"]