Apply ruff/Pylint Refactor rules (PLR)#12010
Conversation
Unit Test ResultsSee test report for an extended history of previous test failures. This is useful for diagnosing flaky tests. 9 files ±0 9 suites ±0 3h 11m 47s ⏱️ - 3m 37s Results for commit e55c2d6. ± Comparison against base commit 88fd00d. ♻️ This comment has been updated with latest results. |
8295e92 to
fadd2b3
Compare
fadd2b3 to
8725525
Compare
jacobtomlinson
left a comment
There was a problem hiding this comment.
Once #12002 is merged we should update this PR to enforce these rules via pre-commit.
8725525 to
3446678
Compare
|
Rebased and updated as suggested. BTW, rule PLR0133 helped identify a bug in a test. |
3446678 to
a20855d
Compare
|
There are a surprising number of CI failures related to this PR that we aren't seeing on |
|
And yet this PR mostly changes Rebased to fix the conflict. |
4290ed1 to
70e7234
Compare
70e7234 to
cb4a95e
Compare
PLR0133 Two constants compared in a comparison, consider replacing `==`
PLR0402 Use `from ... import ...` in lieu of alias
PLR1722 Use `sys.exit()` instead of `exit`
PLR5501 Use `elif` instead of `else` then `if`, to reduce indentation
PLR1711 Useless `return` statement at end of function
cb4a95e to
e55c2d6
Compare
pre-commit run --all-files