From 9b156b3c18819b23b40700556d48303a1bdf2c80 Mon Sep 17 00:00:00 2001 From: Joppe Vos Date: Sun, 3 Dec 2023 18:45:12 +0100 Subject: [PATCH] Disable mccabe on LegacyDbtProject --- cosmos/dbt/parser/project.py | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cosmos/dbt/parser/project.py b/cosmos/dbt/parser/project.py index 278b1a0f7..a4df431c8 100644 --- a/cosmos/dbt/parser/project.py +++ b/cosmos/dbt/parser/project.py @@ -274,7 +274,7 @@ class LegacyDbtProject: operator_args: Dict[str, Any] = field(default_factory=dict) - def __post_init__(self) -> None: + def __post_init__(self) -> None: # noqa: C901 """ Initializes the parser. """ diff --git a/pyproject.toml b/pyproject.toml index d917a07b7..77fa399cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -256,6 +256,7 @@ line-length = 120 [tool.ruff.lint] select = ["C901"] [tool.ruff.lint.mccabe] +max-complexity = 8 [tool.distutils.bdist_wheel]