mirror of https://github.com/astral-sh/ruff
[ty] Make a server snapshot less painful to update (#22132)
This commit is contained in:
parent
572f57aa3c
commit
6b3dd28e63
|
|
@ -43,10 +43,11 @@ return 42
|
|||
.expect("debug command to return a string response");
|
||||
|
||||
insta::with_settings!({
|
||||
filters =>vec![
|
||||
(r"\b[0-9]+.[0-9]+MB\b","[X.XXMB]"),
|
||||
(r"Workspace .+\)","Workspace XXX"),
|
||||
(r"Project at .+","Project at XXX"),
|
||||
filters => vec![
|
||||
(r"\b[0-9]+.[0-9]+MB\b", "[X.XXMB]"),
|
||||
(r"Workspace .+\)", "Workspace XXX"),
|
||||
(r"Project at .+", "Project at XXX"),
|
||||
(r"rules: \{(.|\n)+?\}\,", "rules: <RULES>,"),
|
||||
]}, {
|
||||
insta::assert_snapshot!(response);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -27,88 +27,7 @@ Settings: WorkspaceSettings {
|
|||
|
||||
Project at XXX
|
||||
Settings: Settings {
|
||||
rules: {
|
||||
"ambiguous-protocol-member": Warning (Default),
|
||||
"byte-string-type-annotation": Error (Default),
|
||||
"call-non-callable": Error (Default),
|
||||
"conflicting-argument-forms": Error (Default),
|
||||
"conflicting-declarations": Error (Default),
|
||||
"conflicting-metaclass": Error (Default),
|
||||
"cyclic-class-definition": Error (Default),
|
||||
"cyclic-type-alias-definition": Error (Default),
|
||||
"deprecated": Warning (Default),
|
||||
"duplicate-base": Error (Default),
|
||||
"duplicate-kw-only": Error (Default),
|
||||
"escape-character-in-forward-annotation": Error (Default),
|
||||
"fstring-type-annotation": Error (Default),
|
||||
"ignore-comment-unknown-rule": Warning (Default),
|
||||
"implicit-concatenated-string-type-annotation": Error (Default),
|
||||
"inconsistent-mro": Error (Default),
|
||||
"index-out-of-bounds": Error (Default),
|
||||
"instance-layout-conflict": Error (Default),
|
||||
"invalid-argument-type": Error (Default),
|
||||
"invalid-assignment": Error (Default),
|
||||
"invalid-attribute-access": Error (Default),
|
||||
"invalid-await": Error (Default),
|
||||
"invalid-base": Error (Default),
|
||||
"invalid-context-manager": Error (Default),
|
||||
"invalid-declaration": Error (Default),
|
||||
"invalid-exception-caught": Error (Default),
|
||||
"invalid-explicit-override": Error (Default),
|
||||
"invalid-frozen-dataclass-subclass": Error (Default),
|
||||
"invalid-generic-class": Error (Default),
|
||||
"invalid-ignore-comment": Warning (Default),
|
||||
"invalid-key": Error (Default),
|
||||
"invalid-legacy-type-variable": Error (Default),
|
||||
"invalid-metaclass": Error (Default),
|
||||
"invalid-method-override": Error (Default),
|
||||
"invalid-named-tuple": Error (Default),
|
||||
"invalid-newtype": Error (Default),
|
||||
"invalid-overload": Error (Default),
|
||||
"invalid-parameter-default": Error (Default),
|
||||
"invalid-paramspec": Error (Default),
|
||||
"invalid-protocol": Error (Default),
|
||||
"invalid-raise": Error (Default),
|
||||
"invalid-return-type": Error (Default),
|
||||
"invalid-super-argument": Error (Default),
|
||||
"invalid-syntax-in-forward-annotation": Error (Default),
|
||||
"invalid-type-alias-type": Error (Default),
|
||||
"invalid-type-arguments": Error (Default),
|
||||
"invalid-type-checking-constant": Error (Default),
|
||||
"invalid-type-form": Error (Default),
|
||||
"invalid-type-guard-call": Error (Default),
|
||||
"invalid-type-guard-definition": Error (Default),
|
||||
"invalid-type-variable-constraints": Error (Default),
|
||||
"missing-argument": Error (Default),
|
||||
"missing-typed-dict-key": Error (Default),
|
||||
"no-matching-overload": Error (Default),
|
||||
"non-subscriptable": Error (Default),
|
||||
"not-iterable": Error (Default),
|
||||
"override-of-final-method": Error (Default),
|
||||
"parameter-already-assigned": Error (Default),
|
||||
"positional-only-parameter-as-kwarg": Error (Default),
|
||||
"possibly-missing-attribute": Warning (Default),
|
||||
"possibly-missing-implicit-call": Warning (Default),
|
||||
"raw-string-type-annotation": Error (Default),
|
||||
"redundant-cast": Warning (Default),
|
||||
"static-assert-error": Error (Default),
|
||||
"subclass-of-final-class": Error (Default),
|
||||
"super-call-in-named-tuple-method": Error (Default),
|
||||
"too-many-positional-arguments": Error (Default),
|
||||
"type-assertion-failure": Error (Default),
|
||||
"unavailable-implicit-super-arguments": Error (Default),
|
||||
"undefined-reveal": Warning (Default),
|
||||
"unknown-argument": Error (Default),
|
||||
"unresolved-attribute": Error (Default),
|
||||
"unresolved-global": Warning (Default),
|
||||
"unresolved-import": Error (Default),
|
||||
"unresolved-reference": Error (Default),
|
||||
"unsupported-base": Warning (Default),
|
||||
"unsupported-bool-conversion": Error (Default),
|
||||
"unsupported-operator": Error (Default),
|
||||
"useless-overload-body": Warning (Default),
|
||||
"zero-stepsize-in-slice": Error (Default),
|
||||
},
|
||||
rules: <RULES>,
|
||||
terminal: TerminalSettings {
|
||||
output_format: Full,
|
||||
error_on_warning: false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue