ruff/crates
Charlie Marsh cc9e84c144
Format trailing operator comments as dangling (#7427)
## Summary

Given a trailing operator comment in a unary expression, like:

```python
if (
  not  # comment
  a):
    ...
```

We were attaching these to the operand (`a`), but formatting them in the
unary operator via special handling. Parents shouldn't format the
comments of their children, so this instead attaches them as dangling
comments on the unary expression. (No intended change in formatting.)
2023-09-15 20:34:09 -04:00
..
flake8_to_ruff Bump version to 0.0.290 (#7413) 2023-09-15 13:51:46 -05:00
ruff Bump version to 0.0.290 (#7413) 2023-09-15 13:51:46 -05:00
ruff_benchmark Bump mimalloc from 0.1.38 to 0.1.39 (#7402) 2023-09-15 08:46:55 +00:00
ruff_cache Error on zero tab width (#6429) 2023-08-08 16:51:37 -04:00
ruff_cli Bump version to 0.0.290 (#7413) 2023-09-15 13:51:46 -05:00
ruff_dev Display nursery rules as preview in documentation (#7341) 2023-09-13 10:46:43 -05:00
ruff_diagnostics Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00
ruff_formatter Introduce IndentWidth (#7301) 2023-09-13 14:52:24 +02:00
ruff_index
ruff_macros Update rule selection to respect preview mode (#7195) 2023-09-11 12:28:39 -05:00
ruff_notebook chore: Upgrade pyproject-toml crate (#7335) 2023-09-13 17:55:03 +02:00
ruff_python_ast Remove ExprContext from ComparableExpr (#7362) 2023-09-14 15:40:02 +00:00
ruff_python_codegen Introduce ArgOrKeyword to keep call parameter order (#7302) 2023-09-13 08:45:46 +00:00
ruff_python_formatter Format trailing operator comments as dangling (#7427) 2023-09-15 20:34:09 -04:00
ruff_python_index Move Ranged into ruff_text_size (#6919) 2023-08-27 14:12:51 -04:00
ruff_python_literal Avoid parsing other parts of a format specification if replacements are present (#6858) 2023-08-25 17:42:57 +00:00
ruff_python_parser Add range to lexer test snapshots (#7265) 2023-09-11 19:12:46 +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 Use dot references in docs for methods (#7391) 2023-09-14 14:35:34 -04:00
ruff_python_stdlib Use the unicode-ident crate (#7212) 2023-09-07 08:19:25 +00:00
ruff_python_trivia Use the unicode-ident crate (#7212) 2023-09-07 08:19:25 +00:00
ruff_shrinking Bump shlex from 1.1.0 to 1.2.0 (#7381) 2023-09-14 09:40:05 -05:00
ruff_source_file Use dot references in docs for methods (#7391) 2023-09-14 14:35:34 -04:00
ruff_text_size Unify line size settings between ruff and the formatter (#6873) 2023-08-28 06:44:56 +00:00
ruff_wasm Bump serde-wasm-bindgen from 0.5.0 to 0.6.0 (#7403) 2023-09-15 08:47:42 +00:00
ruff_workspace Add maximum length for line-length to JSON schema (#7412) 2023-09-15 18:10:06 +00:00