### Please describe your wishes and possible alternatives to achieve the desired result. <table> <tr><th>Code      </code><th>Description<th>sc PR<th>ad PR <tr><th colspan=4>Missing from #1117 <tr><td> - [x] [`B`](https://docs.astral.sh/ruff/rules/#flake8-bugbear-b) <td>likely bugs and design problems<td>scverse/scanpy#3573<td>#1967 <tr><td> - [x] [`C4`](https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4) <td>better list/set/dict/generator comprehensions<td>scverse/scanpy#3579<td>#1964 <tr><td> - [x] [`PERF`](https://docs.astral.sh/ruff/rules/#perflint-perf) <td>Rules around mostly loops<td>scverse/scanpy#3579<td>#1964 <tr><td> - [x] [`BLE`](https://docs.astral.sh/ruff/rules/#flake8-blind-except-ble) <td> Disallow `except:`/`except Exception:` <td>scverse/scanpy#3579<td>#1964 <tr><td> - [x] [`PIE`](https://docs.astral.sh/ruff/rules/#flake8-pie-pie) <td>Misc syntax simplifications<td>scverse/scanpy#3573<td>#1967 <tr><td> - [x] [`RUF`](https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf) <td>Various useful Ruff rules<td>scverse/scanpy#3582<td>#1965 <tr><td> - [x] [`EM`](https://docs.astral.sh/ruff/rules/#flake8-errmsg-em) <td>Traceback-friendly error messages<td>scverse/scanpy#3437<td>#1825 <tr><td> - [x] [`ISC`](https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc) <td>Implicit string concatenation<td>scverse/scanpy#3579<td>#1964 <tr><td> - [x] [`SIM`](https://docs.astral.sh/ruff/rules/#flake8-simplify-sim) <td>Flow simplifications<td>scverse/scanpy#3258<td>#1963 <tr><th colspan=4>Mentioned in #1117 (more substantive changes) <tr><td> - [x] [`FBT`](https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt) <td>very useful for a future API update<td>scverse/scanpy#3189<td>#1694 <tr><td> - [x] [`PT`](https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt) <td>very useful, but needs a lot of changes<td>scverse/scanpy#3191<td>#1521 <tr><td> - [ ] [`PD`](https://docs.astral.sh/ruff/rules/#pandas-vet-pd) <td>Pandas vetting<td>scverse/scanpy#4080<td> <tr><td> - [ ] [`D`](https://docs.astral.sh/ruff/rules/#pydocstyle-d) <td>Docstring style<td>scverse/scanpy#3490<td> <tr><td> - [ ] [`RET`](https://docs.astral.sh/ruff/rules/#flake8-return-ret) <td>Clarifies early returns<td><td> <tr><th colspan=4>Also: <tr><td> - [ ] [`NPY`](https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy) <td>numpy specific rules, especially to prevent legacy `np.random` APIs<td>scverse/scanpy#4087<td> <tr><td> - [x] [`SIM`](https://docs.astral.sh/ruff/rules/#flake8-simplify-sim) <td>simplified code (e.g. ternaries instead of assignments in if/else)<td>scverse/scanpy#3258<td>#1963 <tr><td> - [x] [`PYI`](https://docs.astral.sh/ruff/rules/#flake8-pyi-pyi) <td> less-known typing stuff (like `float` meaning `int | float`) <td>scverse/scanpy#3339<td>#1747 <tr><td> - [x] [`PL`](https://docs.astral.sh/ruff/rules/#pylint-pl) <td>A lot of helpful lints, especially to prevent complexity creep<td>scverse/scanpy#3577<td>#1961 <tr><td> - [ ] [`N`](https://docs.astral.sh/ruff/rules/#pep8-naming-n) <td> `snake_case`, `SCREAMING_SNAKE_CASE`, and `CamelCase` <td>scverse/scanpy#3785<td> </table>
Please describe your wishes and possible alternatives to achieve the desired result.
BC4PERFBLEDisallow
except:/except Exception:PIERUFEMISCSIMFBTPTPDDRETNPYSIMPYIless-known typing stuff (like
floatmeaningint | float)PLNsnake_case,SCREAMING_SNAKE_CASE, andCamelCase