From e689d1e7efb6becbb3c9403c5188e4333480930b Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Wed, 21 Jan 2026 12:17:49 +0100 Subject: [PATCH 1/3] Black config: Line length 100 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..aa4949aa --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.black] +line-length = 100 From 953451efe41433f6519530b1c57fb164ca17e034 Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Wed, 21 Jan 2026 12:18:42 +0100 Subject: [PATCH 2/3] Pre-commit hooks Ensure to execute `pip install pre-commit && pre-commit install` in this repo once! --- .pre-commit-config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..a155f957 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.6 + hooks: + - id: remove-tabs + - repo: https://github.com/pycqa/isort + rev: 7.0.0 + hooks: + - id: isort + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 + hooks: + - id: black From da2ee970e9f950ffffc6ff9dffc1b6a29eee3ab7 Mon Sep 17 00:00:00 2001 From: Andreas Zach Date: Wed, 21 Jan 2026 19:35:35 +0100 Subject: [PATCH 3/3] More hooks --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a155f957..023e7572 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,13 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable + - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: check-yaml + - id: detect-private-key - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace