From 75c7a7261fcf0d7b720548481aef997f58bb84ac Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Thu, 1 Jan 2026 20:48:56 +0000 Subject: [PATCH 1/2] Use ruff rather than black and isort for linting --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 71e3f6e28..43a865db4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,7 +62,6 @@ exclude = ["win/rl/nle"] [tool.ruff.lint] ignore = ["B008", "B905", "C901", "E501", "E731"] select = ["B", "B9", "C", "E", "F", "I", "R", "W"] - [tool.ruff.lint.flake8-comprehensions] allow-dict-calls-with-keyword-arguments = true From 2213653c408e9ab4597b8bd54e5cc7d91f5ab9c7 Mon Sep 17 00:00:00 2001 From: "Jonathan B. Coe" Date: Thu, 1 Jan 2026 21:08:23 +0000 Subject: [PATCH 2/2] Add toml formatter to pre-commit checks --- .pre-commit-config.yaml | 4 ++++ pyproject.toml | 1 + 2 files changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 396370d0a..463bc41a0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,3 +18,7 @@ repos: language: system name: clang-format repo: local + - hooks: + - id: taplo-format + repo: https://github.com/ComPWA/taplo-pre-commit + rev: v0.9.3 diff --git a/pyproject.toml b/pyproject.toml index 43a865db4..71e3f6e28 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,6 +62,7 @@ exclude = ["win/rl/nle"] [tool.ruff.lint] ignore = ["B008", "B905", "C901", "E501", "E731"] select = ["B", "B9", "C", "E", "F", "I", "R", "W"] + [tool.ruff.lint.flake8-comprehensions] allow-dict-calls-with-keyword-arguments = true