ruff/crates
Dylan c5b58187da
Add syntax error when conversion flag does not immediately follow exclamation mark (#18706)
Closes #18671

Note that while this has, I believe, always been invalid syntax, it was
reported as a different syntax error until Python 3.12:

Python 3.11:

```pycon
>>> x = 1
>>> f"{x! s}"
  File "<stdin>", line 1
    f"{x! s}"
             ^
SyntaxError: f-string: invalid conversion character: expected 's', 'r', or 'a'
```

Python 3.12:

```pycon
>>> x = 1
>>> f"{x! s}"
  File "<stdin>", line 1
    f"{x! s}"
        ^^^
SyntaxError: f-string: conversion type must come right after the exclamanation mark
```
2025-06-16 11:44:42 -05:00
..
ruff Support cancellation requests (#18627) 2025-06-12 22:08:42 +02:00
ruff_annotate_snippets
ruff_benchmark
ruff_cache
ruff_db [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ruff_dev Remove Message::to_rule (#18447) 2025-06-05 12:48:29 -04:00
ruff_diagnostics
ruff_formatter
ruff_graph [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ruff_index
ruff_linter [flake8-pyi] Fix custom-typevar-for-self with string annotations (PYI019) (#18311) 2025-06-16 10:47:17 -04:00
ruff_macros [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ruff_notebook
ruff_options_metadata
ruff_python_ast [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
ruff_python_ast_integration_tests [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
ruff_python_codegen [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
ruff_python_formatter Add syntax error when conversion flag does not immediately follow exclamation mark (#18706) 2025-06-16 11:44:42 -05:00
ruff_python_index
ruff_python_literal
ruff_python_parser Add syntax error when conversion flag does not immediately follow exclamation mark (#18706) 2025-06-16 11:44:42 -05:00
ruff_python_resolver
ruff_python_semantic [ty] AST garbage collection (#18482) 2025-06-13 08:40:11 -04:00
ruff_python_stdlib
ruff_python_trivia Treat ty: comments as pragma comments (#18532) 2025-06-07 16:02:43 +02:00
ruff_python_trivia_integration_tests
ruff_server Support cancellation requests (#18627) 2025-06-12 22:08:42 +02:00
ruff_source_file
ruff_text_size
ruff_wasm Bump 0.11.13 (#18484) 2025-06-05 15:18:38 -05:00
ruff_workspace Drop confusing second * from glob pattern example (#18709) 2025-06-16 10:41:43 -04:00
ty [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ty_ide [ty] Stabilize completions (#18650) 2025-06-16 07:44:08 -04:00
ty_project [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ty_python_semantic [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ty_server [ty] Stabilize completions (#18650) 2025-06-16 07:44:08 -04:00
ty_test [ty] Allow overriding rules for specific files (#18648) 2025-06-15 14:27:39 +01:00
ty_vendored Sync vendored typeshed stubs (#18679) 2025-06-15 10:20:33 +01:00
ty_wasm [ty] Add infrastructure for AST garbage collection (#18445) 2025-06-05 11:43:18 -04:00