From 8fada0c72ac726a82991cc84adc043fdc88ec9d6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 4 Apr 2024 12:31:52 +0200 Subject: [PATCH 1/2] Flake8 rule C901 is about McCabe code complexity It is not about flake8-comprehensions. --- .flake8 | 3 --- 1 file changed, 3 deletions(-) diff --git a/.flake8 b/.flake8 index 15e385901c..ab4c318bac 100644 --- a/.flake8 +++ b/.flake8 @@ -27,9 +27,6 @@ extend-ignore = E203, W503, D202, D212, D213, D404 # Plug-in: flake8-simplify SIM105, SIM106, SIM119, - # Plug-in: flake8-comprehensions - C901 - # Plug-in: flake8-pytest-style PT001, PT004, PT006, PT011, PT018, PT022, PT023, From f02241ddd0fb1da20a968d0b3b6e9997abc34bb5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 4 Apr 2024 12:34:51 +0200 Subject: [PATCH 2/2] max-complexity = 29 --- .flake8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.flake8 b/.flake8 index ab4c318bac..b16c3bf625 100644 --- a/.flake8 +++ b/.flake8 @@ -2,7 +2,7 @@ # Exclude the grpc generated code exclude = ./manim/grpc/gen/*, __pycache__,.git, per-file-ignores = __init__.py:F401 -max-complexity = 15 +max-complexity = 29 max-line-length = 88 statistics = True # Prevents some flake8-rst-docstrings errors