mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:30:49 +00:00
Fix handling of newlines in empty files (#7473)
This commit is contained in:
parent
b66bfa6570
commit
0346e781d4
12 changed files with 90 additions and 15 deletions
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
|
||||
|
||||
0
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_now_newline.py
vendored
Normal file
0
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_now_newline.py
vendored
Normal file
1
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_trailing_newline.py
vendored
Normal file
1
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_trailing_newline.py
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
1
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_whitespace.py
vendored
Normal file
1
crates/ruff_python_formatter/resources/test/fixtures/ruff/empty_whitespace.py
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
Loading…
Add table
Add a link
Reference in a new issue