ruff/crates/ruff_python_formatter/resources/test/fixtures
konsti 3944c42d4c
Format comment before parameter default correctly (#7870)
**Summary** Handle comment before the default values of function
parameters correctly by inserting a line break instead of space after
the equals sign where required.

```python
def f(
    a = # parameter trailing comment; needs line break
    1,
    b =
    # default leading comment; needs line break
    2,
    c = ( # the default leading can only be end-of-line with parentheses; no line break
        3
    ),
    d = (
        # own line leading comment with parentheses; no line break
        4
    )
)
```

Fixes #7603

**Test Plan** Added the different cases and one more complex case as
fixtures.
2023-10-12 17:50:12 +02:00
..
black Introduce IndentWidth (#7301) 2023-09-13 14:52:24 +02:00
ruff Format comment before parameter default correctly (#7870) 2023-10-12 17:50:12 +02:00
import_black_tests.py Update Black tests (#6618) 2023-08-16 15:05:51 +00:00