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]