Skip to content

🔧 Fix Ruff configuration unintentionally enabling and re-disabling mccabe complexity check#10893

Merged
tiangolo merged 2 commits intofastapi:masterfrom
jiridanek:patch-1
Jan 12, 2024
Merged

🔧 Fix Ruff configuration unintentionally enabling and re-disabling mccabe complexity check#10893
tiangolo merged 2 commits intofastapi:masterfrom
jiridanek:patch-1

Conversation

@jiridanek
Copy link
Copy Markdown
Contributor

Enabling "C" turns on complexity checks (C90, mccabe), which is unintended. Instead, enable "C4" to get flake8-comprehensions checks

See docs at https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4

…plexity check

Enabling "C" turns on complexity checks (C90, mccabe), which is unintended
Instead, enable "C4" to get flake8-comprehensions checks

See docs at https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
@tiangolo tiangolo changed the title Fix mistake in Ruff configuration unintentionally enabling mccabe complexity check 🔧 Fix Ruff configuration unintentionally enabling and re-disabling mccabe complexity check Jan 12, 2024
@tiangolo
Copy link
Copy Markdown
Member

Nice, thanks @jiridanek! 🚀

@tiangolo tiangolo enabled auto-merge (squash) January 12, 2024 14:57
@tiangolo tiangolo merged commit 25646a5 into fastapi:master Jan 12, 2024
@jiridanek jiridanek deleted the patch-1 branch January 12, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants