ruff/crates/ruff_linter/resources/test/fixtures/flake8_simplify
Steve C 214563261d
[`flake8-simplify`] - Fix syntax error in autofix (`SIM114`) (#9704)
## Summary

A fix for
https://github.com/astral-sh/ruff/issues/8402#issuecomment-1916215124

Improves the code, as well. :)

## Test Plan

`cargo test`
2024-01-30 11:36:44 -05:00
..
SIM101.py Fix issues with SIM101 (adjacent isinstance() calls) (#7798) 2023-10-04 04:42:13 +00:00
SIM102.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM103.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM105_0.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM105_1.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM105_2.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM105_3.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM105_4.py Skip BOM when inserting start-of-file imports (#7622) 2023-09-23 19:36:50 +00:00
SIM107.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM108.py Avoid if-else simplification for `TYPE_CHECKING` blocks (#8072) 2023-10-19 19:15:54 -04:00
SIM109.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM110.py Fix SIM110 with a yield in the condition (#7801) 2023-10-04 08:59:19 -04:00
SIM111.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM112.py [`SIM112`] Ignore `https_proxy`, `http_proxy`, and `no_proxy` (#8140) 2023-10-23 08:48:36 -05:00
SIM113.py [`flake8-simplify`] Avoid some more `enumerate-for-loop` false positives (`SIM113`) (#9515) 2024-01-14 13:02:13 -05:00
SIM114.py [`flake8-simplify`] - Fix syntax error in autofix (`SIM114`) (#9704) 2024-01-30 11:36:44 -05:00
SIM115.py [SIM115] Allow `open` followed by `close` (#7916) 2023-10-11 13:53:48 +00:00
SIM116.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM117.py Fix typos found by codespell (#9346) 2024-01-02 02:08:15 +00:00
SIM118.py Make `SIM118` fix as safe when the expression is a known dictionary (#8525) 2023-11-06 21:06:33 +00:00
SIM201.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM202.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM208.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM210.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM211.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM212.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM220.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM221.py Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
SIM222.py Account for possibly-empty f-string values in truthiness logic (#9484) 2024-01-11 21:16:19 -05:00
SIM223.py Account for possibly-empty f-string values in truthiness logic (#9484) 2024-01-11 21:16:19 -05:00
SIM300.py SIM300: CONSTANT_CASE variables are improperly flagged for yoda violation (#9164) 2023-12-20 20:26:07 +00:00
SIM401.py Make SIM401 catch ternary operations (#7415) 2023-10-20 20:47:00 +00:00
SIM910.py Extend `dict-get-with-none-default` (`SIM910`) to non-literals (#8762) 2023-11-19 00:21:53 +00:00
SIM911.py [`flake8-simplify`] Implement `SIM911` (#9460) 2024-01-11 14:42:43 -05:00