ruff/crates
Charlie Marsh 4892167217
Avoid panics for implicitly-concatenated docstrings (#3584)
## Summary

In the rare event that a docstring contains an implicit string concatenation, we currently have the potential to panic, because we assume that if a string starts with triple quotes, it _ends_ with triple quotes. But with implicit concatenation, that's not the case: a single `Expr` could start and end with different quote styles, because it can contain multiple string tokens.

Supporting these "properly" is pretty hard. In some cases it's hard to even know what the "right" behavior is. So for now, I'm just detecting and warning, which is better than a panic.

Closes #3543.

Closes #3585.
2023-03-19 14:16:50 -04:00
..
flake8_to_ruff Change broken links in README to beta.ruff.rs (#3607) 2023-03-19 15:17:44 +00:00
ruff Avoid panics for implicitly-concatenated docstrings (#3584) 2023-03-19 14:16:50 -04:00
ruff_benchmark Bitflag based RuleSet (#3606) 2023-03-19 17:09:06 +01:00
ruff_cache Bump dependencies and move more shared dependencies into workspace (#3340) 2023-03-04 12:36:26 -05:00
ruff_cli Gracefully handle lint panics (#3509) 2023-03-19 17:08:38 +01:00
ruff_dev refactor: Add Copy implementation to Rule (#3556) 2023-03-16 17:50:18 +01:00
ruff_diagnostics Introduce a ruff_diagnostics crate (#3409) 2023-03-09 20:48:57 +00:00
ruff_formatter Bump dependencies and move more shared dependencies into workspace (#3340) 2023-03-04 12:36:26 -05:00
ruff_macros Bitflag based RuleSet (#3606) 2023-03-19 17:09:06 +01:00
ruff_python_ast Avoid panics for implicitly-concatenated docstrings (#3584) 2023-03-19 14:16:50 -04:00
ruff_python_formatter Implement an iterator for universal newlines (#3454) 2023-03-13 00:01:29 -04:00
ruff_python_stdlib Use shared leading_quote implementation in ruff_python_formatter (#3396) 2023-03-08 18:21:59 +00:00
ruff_rustpython Move RustPython vendored and helper code into its own crate (#3171) 2023-02-23 14:14:16 +00:00
ruff_testing_macros refactor: Extract ruff_wasm (#3401) 2023-03-09 10:07:39 +00:00
ruff_text_size Bump dependencies and move more shared dependencies into workspace (#3340) 2023-03-04 12:36:26 -05:00
ruff_wasm fix: WASM tests (#3415) 2023-03-09 11:27:59 +01:00