mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 12:16:43 +00:00
delete unstable lambda tests
This commit is contained in:
parent
dfb56d39f6
commit
8fa21ab5fa
3 changed files with 0 additions and 104 deletions
|
|
@ -1,5 +0,0 @@
|
|||
[
|
||||
{
|
||||
"preview": "enabled"
|
||||
}
|
||||
]
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
"""
|
||||
Test cases from lambda.py that cause an instability in the stable
|
||||
implementation but that are handled by the preview `indent_lambda_parameters`
|
||||
version.
|
||||
"""
|
||||
|
||||
(
|
||||
lambda
|
||||
# comment 1
|
||||
*
|
||||
# comment 2
|
||||
x,
|
||||
**y:
|
||||
# comment 3
|
||||
x
|
||||
)
|
||||
|
||||
(
|
||||
lambda # comment 1
|
||||
* # comment 2
|
||||
x,
|
||||
y: # comment 3
|
||||
x
|
||||
)
|
||||
|
|
@ -1,75 +0,0 @@
|
|||
---
|
||||
source: crates/ruff_python_formatter/tests/fixtures.rs
|
||||
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/expression/lambda_preview.py
|
||||
---
|
||||
## Input
|
||||
```python
|
||||
"""
|
||||
Test cases from lambda.py that cause an instability in the stable
|
||||
implementation but that are handled by the preview `indent_lambda_parameters`
|
||||
version.
|
||||
"""
|
||||
|
||||
(
|
||||
lambda
|
||||
# comment 1
|
||||
*
|
||||
# comment 2
|
||||
x,
|
||||
**y:
|
||||
# comment 3
|
||||
x
|
||||
)
|
||||
|
||||
(
|
||||
lambda # comment 1
|
||||
* # comment 2
|
||||
x,
|
||||
y: # comment 3
|
||||
x
|
||||
)
|
||||
```
|
||||
|
||||
## Outputs
|
||||
### Output 1
|
||||
```
|
||||
indent-style = space
|
||||
line-width = 88
|
||||
indent-width = 4
|
||||
quote-style = Double
|
||||
line-ending = LineFeed
|
||||
magic-trailing-comma = Respect
|
||||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
"""
|
||||
Test cases from lambda.py that cause an instability in the stable
|
||||
implementation but that are handled by the preview `indent_lambda_parameters`
|
||||
version.
|
||||
"""
|
||||
|
||||
(
|
||||
lambda
|
||||
# comment 1
|
||||
# comment 2
|
||||
*x,
|
||||
**y
|
||||
:
|
||||
# comment 3
|
||||
x
|
||||
)
|
||||
|
||||
(
|
||||
lambda # comment 1
|
||||
# comment 2
|
||||
*x,
|
||||
y
|
||||
: # comment 3
|
||||
x
|
||||
)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue