mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
[flake8-pytest-style
] Fix defaults when lint.flake8-pytest-style
config section is empty (PT001
, PT023
) (#13292)
This commit is contained in:
parent
d1e15f6246
commit
2b87587ac2
2 changed files with 5 additions and 10 deletions
|
@ -347,9 +347,7 @@ impl Configuration {
|
|||
.unwrap_or_default(),
|
||||
flake8_pytest_style: lint
|
||||
.flake8_pytest_style
|
||||
.map(|options| {
|
||||
Flake8PytestStyleOptions::try_into_settings(options, lint_preview)
|
||||
})
|
||||
.map(Flake8PytestStyleOptions::try_into_settings)
|
||||
.transpose()?
|
||||
.unwrap_or_default(),
|
||||
flake8_quotes: lint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue