mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
49 lines
489 B
Text
49 lines
489 B
Text
---
|
|
source: crates/ruff_python_formatter/tests/fixtures.rs
|
|
input_file: crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/fmtskip4.py
|
|
---
|
|
## Input
|
|
|
|
```py
|
|
a = 2
|
|
# fmt: skip
|
|
l = [1, 2, 3,]
|
|
```
|
|
|
|
## Black Differences
|
|
|
|
```diff
|
|
--- Black
|
|
+++ Ruff
|
|
@@ -1,7 +1,3 @@
|
|
a = 2
|
|
# fmt: skip
|
|
-l = [
|
|
- 1,
|
|
- 2,
|
|
- 3,
|
|
-]
|
|
+l = [1, 2, 3]
|
|
```
|
|
|
|
## Ruff Output
|
|
|
|
```py
|
|
a = 2
|
|
# fmt: skip
|
|
l = [1, 2, 3]
|
|
```
|
|
|
|
## Black Output
|
|
|
|
```py
|
|
a = 2
|
|
# fmt: skip
|
|
l = [
|
|
1,
|
|
2,
|
|
3,
|
|
]
|
|
```
|
|
|
|
|