ruff/crates/ruff_linter/src
Charlie Marsh 764d9ab4ee
Allow repeated-equality-comparison for mixed operations (#12369)
## Summary

This PR allows us to fix both expressions in `foo == "a" or foo == "b"
or ("c" != bar and "d" != bar)`, but limits the rule to consecutive
comparisons, following https://github.com/astral-sh/ruff/issues/7797.

I think this logic was _probably_ added because of
https://github.com/astral-sh/ruff/pull/12368 -- the intent being that
we'd replace the _entire_ expression.
2024-07-18 11:16:40 -04:00
..
checkers [pyupgrade] Implement unnecessary-default-type-args (UP043) (#12371) 2024-07-17 19:45:43 +00:00
comments Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
cst Wrap expressions in parentheses when negating (#10346) 2024-03-11 18:20:55 -04:00
docstrings [pydocstyle-D405] Allow using parameters as a sub-section header (#9894) 2024-02-08 21:54:32 -05:00
fix Use CompactString for Identifier (#12101) 2024-07-01 10:06:02 +02:00
importer Use CompactString for Identifier (#12101) 2024-07-01 10:06:02 +02:00
message Omit code frames for fixes with empty ranges (#12304) 2024-07-12 15:21:28 +00:00
registry Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
rules Allow repeated-equality-comparison for mixed operations (#12369) 2024-07-18 11:16:40 -04:00
settings Make requires-python inference robust to == (#12091) 2024-06-28 09:38:17 -04:00
snapshots [ruff] Implement redirected-noqa (RUF101) (#11052) 2024-04-27 02:08:11 +00:00
codes.rs [pyupgrade] Implement unnecessary-default-type-args (UP043) (#12371) 2024-07-17 19:45:43 +00:00
directives.rs Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
doc_lines.rs Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
fs.rs Struct not tuple for compiled per-file ignores (#10864) 2024-04-11 13:47:57 -06:00
lib.rs Remove E999 as a rule, disallow any disablement methods for syntax error (#11901) 2024-06-27 13:44:11 +02:00
line_width.rs Upgrade to Rust 1.78 (#11260) 2024-05-03 12:46:21 +00:00
linter.rs Disable auto-fix when source has syntax errors (#12134) 2024-07-02 14:22:51 +05:30
logging.rs Replace LALRPOP parser with hand-written parser (#10036) 2024-04-18 17:57:39 +05:30
noqa.rs Remove E999 as a rule, disallow any disablement methods for syntax error (#11901) 2024-06-27 13:44:11 +02:00
packaging.rs Nested namespace packages support (#10541) 2024-03-24 22:53:32 -04:00
pyproject_toml.rs Update pyproject-toml to 0.8 (#8351) 2023-10-30 10:05:37 +00:00
registry.rs Re-code flake8-trio and flake8-async rules to match upstream (#10416) 2024-06-27 13:44:11 +02:00
renamer.rs Remove BindingKind::ComprehensionVar (#12347) 2024-07-16 11:18:04 -04:00
rule_redirects.rs Re-code flake8-trio and flake8-async rules to match upstream (#10416) 2024-06-27 13:44:11 +02:00
rule_selector.rs Added ignoring deprecated rules for --select=ALL (#10497) 2024-06-27 13:44:11 +02:00
source_kind.rs Handle non-printable characters in diff view (#11687) 2024-06-08 06:22:03 +00:00
test.rs Disable auto-fix when source has syntax errors (#12134) 2024-07-02 14:22:51 +05:30
text_helpers.rs Handle non-printable characters in diff view (#11687) 2024-06-08 06:22:03 +00:00
upstream_categories.rs Fix pylint upstream categories not showing in docs (#10441) 2024-03-18 01:27:39 +00:00