diff --git a/crates/ruff_workspace/src/options.rs b/crates/ruff_workspace/src/options.rs index f68a8b50f035c..26a47ef124b2c 100644 --- a/crates/ruff_workspace/src/options.rs +++ b/crates/ruff_workspace/src/options.rs @@ -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>, /// 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", diff --git a/ruff.schema.json b/ruff.schema.json index c1abd4e001ab5..38d0f567c78a4 100644 --- a/ruff.schema.json +++ b/ruff.schema.json @@ -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"