mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Show source-type in formatter snapshot tests with options (#9699)
This commit is contained in:
parent
dacda0f202
commit
3c7fea769c
18 changed files with 51 additions and 2 deletions
|
@ -381,7 +381,8 @@ magic-trailing-comma = {magic_trailing_comma:?}
|
|||
docstring-code = {docstring_code:?}
|
||||
docstring-code-line-width = {docstring_code_line_width:?}
|
||||
preview = {preview:?}
|
||||
target_version = {target_version:?}"#,
|
||||
target_version = {target_version:?}
|
||||
source_type = {source_type:?}"#,
|
||||
indent_style = self.0.indent_style(),
|
||||
indent_width = self.0.indent_width().value(),
|
||||
line_width = self.0.line_width().value(),
|
||||
|
@ -391,7 +392,8 @@ target_version = {target_version:?}"#,
|
|||
docstring_code = self.0.docstring_code(),
|
||||
docstring_code_line_width = self.0.docstring_code_line_width(),
|
||||
preview = self.0.preview(),
|
||||
target_version = self.0.target_version()
|
||||
target_version = self.0.target_version(),
|
||||
source_type = self.0.source_type()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,6 +57,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -176,6 +176,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -351,6 +352,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -526,6 +528,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -701,6 +704,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -876,6 +880,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -1369,6 +1369,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -2740,6 +2741,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -4111,6 +4113,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -5482,6 +5485,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -6853,6 +6857,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -8257,6 +8262,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -9661,6 +9667,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -11074,6 +11081,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -12478,6 +12486,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = 60
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -13891,6 +13900,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -28,6 +28,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -240,6 +240,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -569,6 +570,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -866,6 +868,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -1195,6 +1198,7 @@ docstring-code = Enabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -141,6 +141,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -296,6 +297,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -159,6 +159,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -365,6 +366,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -38,6 +38,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -75,6 +76,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -19,6 +19,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -37,6 +38,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -55,6 +57,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -34,6 +34,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -68,6 +69,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -102,6 +104,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -85,6 +85,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -240,6 +241,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -69,6 +69,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -154,6 +155,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -239,6 +241,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -52,6 +52,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -109,6 +110,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -254,6 +254,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -328,6 +328,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -698,6 +699,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = Py39
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -107,6 +107,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = Py39
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
|
@ -27,6 +27,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -53,6 +54,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
@ -82,6 +84,7 @@ docstring-code = Disabled
|
|||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = Py38
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
```python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue