mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:49:50 +00:00
49 lines
855 B
Text
49 lines
855 B
Text
---
|
|
source: crates/ruff_python_formatter/tests/fixtures.rs
|
|
input_file: crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/fmtskip6.py
|
|
---
|
|
## Input
|
|
|
|
```py
|
|
class A:
|
|
def f(self):
|
|
for line in range(10):
|
|
if True:
|
|
pass # fmt: skip
|
|
```
|
|
|
|
## Black Differences
|
|
|
|
```diff
|
|
--- Black
|
|
+++ Ruff
|
|
@@ -1,5 +1,5 @@
|
|
class A:
|
|
def f(self):
|
|
- for line in range(10):
|
|
+ for line in NOT_IMPLEMENTED_call(NOT_IMPLEMENTED_arg):
|
|
if True:
|
|
pass # fmt: skip
|
|
```
|
|
|
|
## Ruff Output
|
|
|
|
```py
|
|
class A:
|
|
def f(self):
|
|
for line in NOT_IMPLEMENTED_call(NOT_IMPLEMENTED_arg):
|
|
if True:
|
|
pass # fmt: skip
|
|
```
|
|
|
|
## Black Output
|
|
|
|
```py
|
|
class A:
|
|
def f(self):
|
|
for line in range(10):
|
|
if True:
|
|
pass # fmt: skip
|
|
```
|
|
|
|
|