Linked Questions

Popular Questions

Ruff Ignore Inline or Function Rule Check

Asked by At

I am using ruff==0.0.265 I have a single function I expect to have complexity and do not wish to change that.

src/ C901 `convert_py4j_exception` is too complex (11 > 10)
src/ PLR0911 Too many return statements (10 > 6)

How do I ignore a specific rule with ruff on a single function convert_py4j_exception(). I do not want to turn it off completly.

Related Questions