@@ -47,7 +47,7 @@ pub struct Options {
4747 /// This setting will override even the `RUFF_CACHE_DIR` environment
4848 /// variable, if set.
4949 #[ option(
50- default = " .ruff_cache",
50+ default = r#"" .ruff_cache""# ,
5151 value_type = "str" ,
5252 example = r#"cache-dir = "~/.cache/ruff""#
5353 ) ]
@@ -553,7 +553,7 @@ pub struct LintCommonOptions {
553553 /// default expression matches `_`, `__`, and `_var`, but not `_var_`.
554554 #[ option(
555555 default = r#""^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$""# ,
556- value_type = "re.Pattern " ,
556+ value_type = "str " ,
557557 example = r#"
558558 # Only ignore variables named "_".
559559 dummy-variable-rgx = "^_$"
@@ -1171,7 +1171,7 @@ pub struct Flake8CopyrightOptions {
11711171 /// - `Copyright (C) 2021-2023`
11721172 /// - `Copyright (C) 2021, 2023`
11731173 #[ option(
1174- default = r#"(?i)Copyright\s+((?:\(C\)|©)\s+)?\d{4}((-|,\s)\d{4})*"# ,
1174+ default = r#"" (?i)Copyright\s+((?:\(C\)|©)\s+)?\d{4}((-|,\s)\d{4})*" "# ,
11751175 value_type = "str" ,
11761176 example = r#"notice-rgx = "(?i)Copyright \\(C\\) \\d{4}""#
11771177 ) ]
@@ -2029,7 +2029,7 @@ pub struct IsortOptions {
20292029 /// this to "closest-to-furthest" is equivalent to isort's
20302030 /// `reverse-relative = true`.
20312031 #[ option(
2032- default = r#"furthest-to-closest"# ,
2032+ default = r#"" furthest-to-closest" "# ,
20332033 value_type = r#""furthest-to-closest" | "closest-to-furthest""# ,
20342034 example = r#"
20352035 relative-imports-order = "closest-to-furthest"
@@ -2146,7 +2146,7 @@ pub struct IsortOptions {
21462146
21472147 /// Define a default section for any imports that don't fit into the specified [`section-order`](#lint_isort_section-order).
21482148 #[ option(
2149- default = r#"third-party"# ,
2149+ default = r#"" third-party" "# ,
21502150 value_type = "str" ,
21512151 example = r#"
21522152 default-section = "first-party"
@@ -2660,8 +2660,8 @@ pub struct PycodestyleOptions {
26602660 pub max_doc_length : Option < LineLength > ,
26612661
26622662 /// Whether line-length violations (`E501`) should be triggered for
2663- /// comments starting with [`task-tags`](#lint_task-tags) (by default: \[ "TODO", "FIXME",
2664- /// and "XXX"\] ).
2663+ /// comments starting with [`task-tags`](#lint_task-tags) (by default: "TODO", "FIXME",
2664+ /// and "XXX").
26652665 #[ option(
26662666 default = "false" ,
26672667 value_type = "bool" ,
@@ -3059,7 +3059,7 @@ pub struct FormatOptions {
30593059 ///
30603060 /// See [`indent-width`](#indent-width) to configure the number of spaces per indentation and the tab width.
30613061 #[ option(
3062- default = " space",
3062+ default = r#"" space""# ,
30633063 value_type = r#""space" | "tab""# ,
30643064 example = r#"
30653065 # Use tabs instead of 4 space indentation.
@@ -3092,7 +3092,7 @@ pub struct FormatOptions {
30923092 /// a mixture of single and double quotes and can't migrate to the `double` or `single` style.
30933093 /// The quote style `preserve` leaves the quotes of all strings unchanged.
30943094 #[ option(
3095- default = r#"double"# ,
3095+ default = r#"" double" "# ,
30963096 value_type = r#""double" | "single" | "preserve""# ,
30973097 example = r#"
30983098 # Prefer single quotes over double quotes.
@@ -3136,7 +3136,7 @@ pub struct FormatOptions {
31363136 /// * `cr-lf`: Line endings will be converted to `\r\n`. The default line ending on Windows.
31373137 /// * `native`: Line endings will be converted to `\n` on Unix and `\r\n` on Windows.
31383138 #[ option(
3139- default = r#"auto"# ,
3139+ default = r#"" auto" "# ,
31403140 value_type = r#""auto" | "lf" | "cr-lf" | "native""# ,
31413141 example = r#"
31423142 # Use `\n` line endings for all files
0 commit comments