You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just the "aesthetic" part of implementing `warning` severities.
Configuration changes are in
astral-sh#23846
It's expected that the `preview` ecosystem check times out here.
foo/bar/baz/__init__.py:1:1: INP001 File `foo/bar/baz/__init__.py` declares a package, but is nested under an implicit namespace package. Add an `__init__.py` to `foo/bar`.
2734
+
foo/bar/baz/__init__.py:1:1: error[INP001] File `foo/bar/baz/__init__.py` declares a package, but is nested under an implicit namespace package. Add an `__init__.py` to `foo/bar`.
2735
2735
Found 1 error.
2736
2736
2737
2737
----- stderr -----
2738
-
");
2738
+
"###);
2739
2739
2740
2740
Ok(())
2741
2741
}
@@ -3112,7 +3112,7 @@ class Foo[_T, __T]:
3112
3112
pass
3113
3113
"#
3114
3114
),
3115
-
@"
3115
+
@r###"
3116
3116
success: false
3117
3117
exit_code: 1
3118
3118
----- stdout -----
@@ -3121,9 +3121,9 @@ class Foo[_T, __T]:
3121
3121
pass
3122
3122
3123
3123
----- stderr -----
3124
-
test.py:2:14: UP049 Generic class uses private type parameters
3124
+
test.py:2:14: error[UP049] Generic class uses private type parameters
3125
3125
Found 2 errors (1 fixed, 1 remaining).
3126
-
"
3126
+
"###
3127
3127
);
3128
3128
}
3129
3129
@@ -3263,16 +3263,16 @@ T = TypeVar("T")
3263
3263
class A(Generic[T]):
3264
3264
var: T
3265
3265
"#),
3266
-
@"
3266
+
@r###"
3267
3267
success: false
3268
3268
exit_code: 1
3269
3269
----- stdout -----
3270
-
test.py:6:9: UP046 Generic class `A` uses `Generic` subclass instead of type parameters
3270
+
test.py:6:9: error[UP046] Generic class `A` uses `Generic` subclass instead of type parameters
3271
3271
Found 1 error.
3272
3272
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
3273
3273
3274
3274
----- stderr -----
3275
-
"
3275
+
"###
3276
3276
);
3277
3277
3278
3278
// with per-file-target-version, there should be no errors because the new generic syntax is
@@ -3405,15 +3405,15 @@ match 2:
3405
3405
print("it's one")
3406
3406
"#
3407
3407
),
3408
-
@"
3408
+
@r###"
3409
3409
success: false
3410
3410
exit_code: 1
3411
3411
----- stdout -----
3412
-
test.py:2:1: invalid-syntax: Cannot use `match` statement on Python 3.9 (syntax was added in Python 3.10)
3412
+
test.py:2:1: error[invalid-syntax] Cannot use `match` statement on Python 3.9 (syntax was added in Python 3.10)
Copy file name to clipboardExpand all lines: crates/ruff/tests/cli/snapshots/cli__format__output_format_json-lines.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,6 @@ info:
14
14
success: false
15
15
exit_code: 1
16
16
-----stdout-----
17
-
{"cell":null,"code":"unformatted","end_location":{"column":1,"row":2},"filename":"[TMP]/input.py","fix":{"applicability":"safe","edits":[{"content":"","end_location":{"column":1,"row":2},"location":{"column":1,"row":1}}],"message":null},"location":{"column":1,"row":1},"message":"File would be reformatted","noqa_row":null,"url":null}
17
+
{"cell":null,"code":"unformatted","end_location":{"column":1,"row":2},"filename":"[TMP]/input.py","fix":{"applicability":"safe","edits":[{"content":"","end_location":{"column":1,"row":2},"location":{"column":1,"row":1}}],"message":null},"location":{"column":1,"row":1},"message":"File would be reformatted","noqa_row":null,"severity":"error","url":null}
0 commit comments