ruff/crates/ruff_python_formatter/Cargo.toml
Charlie Marsh f967f344fc
Add support for basic Constant::Str formatting (#3173)
This PR enables us to apply the proper quotation marks, including support for escapes. There are some significant TODOs, especially around implicit concatenations like:

```py
(
  "abc"
  "def"
)
```

Which are represented as a single AST node, which requires us to tokenize _within_ the formatter to identify all the individual string parts.
2023-02-23 16:23:10 +00:00

26 lines
745 B
TOML

[package]
name = "ruff_python_formatter"
version = "0.0.0"
publish = false
edition = { workspace = true }
rust-version = { workspace = true }
[dependencies]
ruff_formatter = { path = "../ruff_formatter" }
ruff_python = { path = "../ruff_python" }
ruff_rustpython = { path = "../ruff_rustpython" }
ruff_text_size = { path = "../ruff_text_size" }
anyhow = { workspace = true }
clap = { workspace = true }
once_cell = { workspace = true }
rustc-hash = { workspace = true }
rustpython-common = { workspace = true }
rustpython-parser = { workspace = true }
[dev-dependencies]
ruff_testing_macros = { path = "../ruff_testing_macros" }
insta = { version = "1.19.0", features = [] }
test-case = { version = "2.2.2" }
similar = { version = "2.2.1" }