From ba0a1afd5fe334a2787db052dc47821e836ebe48 Mon Sep 17 00:00:00 2001 From: Mirza Krak Date: Mon, 20 Oct 2025 17:32:11 +0200 Subject: [PATCH] chore(pyproject): disable COM812 ruff rule From the docs [1]: > We recommend against using this rule alongside the formatter. The formatter enforces consistent use of trailing commas, making the rule redundant. Fixes the following warning: warning: The following rule may cause conflicts when used with the formatter: `COM812`. To avoid unexpected behavior, we recommend disabling this rule, either by removing it from the `lint.select` or `lint.extend-select` configuration, or adding it to the `lint.ignore` configuration. 1. https://docs.astral.sh/ruff/rules/missing-trailing-comma/ Signed-off-by: Mirza Krak --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 6ae4fdb..b7a792b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,5 +31,9 @@ dev = [ [tool.ruff.lint] select = ["ALL"] +ignore = [ + "COM812", # in conflict with formatter +] + [tool.ruff.lint.pydocstyle] convention = "google"