Implement pylint's `too-many-statements` rule (`PLR0915`)
https://pylint.pycqa.org/en/latest/user_guide/messages/refactor/too-many-statements.html
A bit of a quirky one, I made a bunch of test cases in python to see how pylint would work (tested on 2.9.3) to derive the expected behaviour.
I'm unsure how to fix the unittest as it passes for me locally:
➜ ruff git:(PLR0915) cargo test rules::pylint::tests::max_statements
Finished test [unoptimized + debuginfo] target(s) in 0.84s
Running unittests src/lib.rs (target/debug/deps/ruff-6394b47557a9e4c6)
running 1 test
test rules::pylint::tests::max_statements ... ok
Looks like it's failing due to No such file or directory. Let me see...
Can't for the life of me figure out that failure. Going to try downgrading insta I guess?
Can't for the life of me figure out that failure. Going to try downgrading
instaI guess?
I think I figured it out, I put the wrong path inside of src/rules/pylint/mod.rs