ruff/crates
Zanie Blue f2eb7bcacf
Update ERA100 to apply to commented dictionary items with trailing comments (#6822)
Closes https://github.com/astral-sh/ruff/issues/6821

ERA100 was not raising on commented parts of dictionaries if it included
another comment (such as a noqa clause). In cases where this comment was
a noqa clause, RUF100 to be emitted since the noqa would have no effect.
Here, we update ERA100 to raise even when there are trailing comments.
This resolves the linked issue _and_ increases the scope of ERA100. We
could narrow the regular expression to only apply to noqa comments if we
do not want to expand ERA100 however I think this change is within the
spirit of the rule.
2023-08-25 11:02:31 -05:00
..
flake8_to_ruff Bump version to 0.0.285 (#6660) 2023-08-17 15:46:28 -05:00
ruff Update ERA100 to apply to commented dictionary items with trailing comments (#6822) 2023-08-25 11:02:31 -05:00
ruff_benchmark Extend BestFitting with mode (#6814) 2023-08-23 17:23:45 +02:00
ruff_cache Error on zero tab width (#6429) 2023-08-08 16:51:37 -04:00
ruff_cli Rename Notebook related symbols (#6862) 2023-08-25 11:40:54 +05:30
ruff_dev Improve formatter contributor docs (#6776) 2023-08-24 10:45:08 +00:00
ruff_diagnostics Avoid attempting to fix PT018 in multi-statement lines (#6829) 2023-08-23 19:09:34 -04:00
ruff_formatter Printer: Slice based queue and stack (#6819) 2023-08-24 14:49:27 +02:00
ruff_index
ruff_macros
ruff_python_ast Rename Notebook related symbols (#6862) 2023-08-25 11:40:54 +05:30
ruff_python_codegen Make Parameters an optional field on ExprLambda (#6669) 2023-08-18 15:34:54 +00:00
ruff_python_formatter Use BestFit layout even for attributes with a short name (#6872) 2023-08-25 17:47:02 +02:00
ruff_python_index Avoid attempting to fix PT018 in multi-statement lines (#6829) 2023-08-23 19:09:34 -04:00
ruff_python_literal Add support for nested replacements inside format specifications (#6616) 2023-08-17 09:07:30 -05:00
ruff_python_parser Rename parser goal 'All' to 'all' (#6867) 2023-08-25 12:00:57 +00:00
ruff_python_resolver Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
ruff_python_semantic Update mutable-argument-default (B006) to use extend-immutable-calls when determining if annotations are immutable (#6781) 2023-08-23 15:44:35 +00:00
ruff_python_stdlib Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
ruff_python_trivia Format all attribute dot comments manually (#6825) 2023-08-25 03:50:56 +00:00
ruff_shrinking Implement Ranged on more structs (#6639) 2023-08-17 11:22:39 -04:00
ruff_source_file
ruff_text_size
ruff_wasm Set a default on PythonVersion (#6446) 2023-08-09 15:19:27 +00:00