mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Change default for PT001 and PT023 (#12838)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
9fd8aaaf29
commit
2e211c5c22
15 changed files with 351 additions and 390 deletions
|
@ -1390,11 +1390,8 @@ pub struct Flake8PytestStyleOptions {
|
|||
/// default), `@pytest.fixture()` is valid and `@pytest.fixture` is
|
||||
/// invalid. If set to `false`, `@pytest.fixture` is valid and
|
||||
/// `@pytest.fixture()` is invalid.
|
||||
///
|
||||
/// If [preview](https://docs.astral.sh/ruff/preview/) is enabled, defaults to
|
||||
/// `false`.
|
||||
#[option(
|
||||
default = "true",
|
||||
default = "false",
|
||||
value_type = "bool",
|
||||
example = "fixture-parentheses = true"
|
||||
)]
|
||||
|
@ -1476,11 +1473,8 @@ pub struct Flake8PytestStyleOptions {
|
|||
/// 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.
|
||||
///
|
||||
/// If [preview](https://docs.astral.sh/ruff/preview/) is enabled, defaults to
|
||||
/// `false`.
|
||||
#[option(
|
||||
default = "true",
|
||||
default = "false",
|
||||
value_type = "bool",
|
||||
example = "mark-parentheses = true"
|
||||
)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue