Fixup description of default values for `fixture-parentheses` and `mark-parentheses` (#12904)

This commit is contained in:
Alex Waygood 2024-08-15 15:20:36 +01:00 committed by GitHub
parent b9da31610a
commit 6ed06afd28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -1388,10 +1388,10 @@ impl Flake8ImportConventionsOptions {
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct Flake8PytestStyleOptions {
/// Boolean flag specifying whether `@pytest.fixture()` without parameters
/// should have parentheses. If the option is set to `true` (the
/// default), `@pytest.fixture()` is valid and `@pytest.fixture` is
/// invalid. If set to `false`, `@pytest.fixture` is valid and
/// `@pytest.fixture()` is invalid.
/// should have parentheses. If the option is set to `false` (the default),
/// `@pytest.fixture` is valid and `@pytest.fixture()` is invalid. If set
/// to `true`, `@pytest.fixture()` is valid and `@pytest.fixture` is
/// invalid.
#[option(
default = "false",
value_type = "bool",
@ -1471,10 +1471,10 @@ pub struct Flake8PytestStyleOptions {
pub raises_extend_require_match_for: Option<Vec<String>>,
/// Boolean flag specifying whether `@pytest.mark.foo()` without parameters
/// should have parentheses. If the option is set to `true` (the
/// default), `@pytest.mark.foo()` is valid and `@pytest.mark.foo` is
/// invalid. If set to `false`, `@pytest.mark.foo` is valid and
/// `@pytest.mark.foo()` is invalid.
/// should have parentheses. If the option is set to `false` (the
/// default), `@pytest.mark.foo` is valid and `@pytest.mark.foo()` is
/// invalid. If set to `true`, `@pytest.mark.foo()` is valid and
/// `@pytest.mark.foo` is invalid.
#[option(
default = "false",
value_type = "bool",

4
ruff.schema.json generated
View File

@ -1103,14 +1103,14 @@
"type": "object",
"properties": {
"fixture-parentheses": {
"description": "Boolean flag specifying whether `@pytest.fixture()` without parameters should have parentheses. If the option is set to `true` (the default), `@pytest.fixture()` is valid and `@pytest.fixture` is invalid. If set to `false`, `@pytest.fixture` is valid and `@pytest.fixture()` is invalid.",
"description": "Boolean flag specifying whether `@pytest.fixture()` without parameters should have parentheses. If the option is set to `false` (the default), `@pytest.fixture` is valid and `@pytest.fixture()` is invalid. If set to `true`, `@pytest.fixture()` is valid and `@pytest.fixture` is invalid.",
"type": [
"boolean",
"null"
]
},
"mark-parentheses": {
"description": "Boolean flag specifying whether `@pytest.mark.foo()` without parameters should have parentheses. If the option is set to `true` (the default), `@pytest.mark.foo()` is valid and `@pytest.mark.foo` is invalid. If set to `false`, `@pytest.mark.foo` is valid and `@pytest.mark.foo()` is invalid.",
"description": "Boolean flag specifying whether `@pytest.mark.foo()` without parameters should have parentheses. If the option is set to `false` (the default), `@pytest.mark.foo` is valid and `@pytest.mark.foo()` is invalid. If set to `true`, `@pytest.mark.foo()` is valid and `@pytest.mark.foo` is invalid.",
"type": [
"boolean",
"null"