mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 14:52:01 +00:00
41 lines
485 B
Text
41 lines
485 B
Text
---
|
|
source: crates/ruff_python_formatter/tests/fixtures.rs
|
|
input_file: crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/fmtskip.py
|
|
---
|
|
## Input
|
|
|
|
```py
|
|
a, b = 1, 2
|
|
c = 6 # fmt: skip
|
|
d = 5
|
|
```
|
|
|
|
## Black Differences
|
|
|
|
```diff
|
|
--- Black
|
|
+++ Ruff
|
|
@@ -1,3 +1,3 @@
|
|
a, b = 1, 2
|
|
-c = 6 # fmt: skip
|
|
+c = 6 # fmt: skip
|
|
d = 5
|
|
```
|
|
|
|
## Ruff Output
|
|
|
|
```py
|
|
a, b = 1, 2
|
|
c = 6 # fmt: skip
|
|
d = 5
|
|
```
|
|
|
|
## Black Output
|
|
|
|
```py
|
|
a, b = 1, 2
|
|
c = 6 # fmt: skip
|
|
d = 5
|
|
```
|
|
|
|
|