Skip to content

Commit 80b4688

Browse files
Fix list markup: blank line required (#10591)
Judging from the other lists in this same file, it looks like a blank line is required to separate the previous paragraph from the first list item. Otherwise the list is considered part of the paragraph: - https://docs.astral.sh/ruff/settings/#lint_flake8-copyright_notice-rgx <img width="400" alt="image" src="https://github.com/astral-sh/ruff/assets/282592/663fa5b4-f787-4fcd-bdd6-0b891d7ad72b"> - https://docs.astral.sh/ruff/settings/#format_quote-style <img width="400" alt="image" src="https://github.com/astral-sh/ruff/assets/282592/809735eb-c546-4348-9311-877441bae84e"> After this change hopefully those will be rendered as proper bullet lists.
1 parent fdd25f0 commit 80b4688

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/ruff_workspace/src/options.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,7 @@ pub struct Flake8CopyrightOptions {
11331133
/// with the [`regex`](https://docs.rs/regex/latest/regex/) crate.
11341134
/// Defaults to `(?i)Copyright\s+((?:\(C\)|©)\s+)?\d{4}((-|,\s)\d{4})*`, which matches
11351135
/// the following:
1136+
///
11361137
/// - `Copyright 2023`
11371138
/// - `Copyright (C) 2023`
11381139
/// - `Copyright 2021-2023`
@@ -2962,6 +2963,7 @@ pub struct FormatOptions {
29622963
pub indent_style: Option<IndentStyle>,
29632964

29642965
/// Configures the preferred quote character for strings. The recommended options are
2966+
///
29652967
/// * `double` (default): Use double quotes `"`
29662968
/// * `single`: Use single quotes `'`
29672969
///

ruff.schema.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)