@@ -27,7 +27,7 @@ use ruff_linter::rules::{
27
27
pycodestyle, pydocstyle, pyflakes, pylint, pyupgrade, ruff,
28
28
} ;
29
29
use ruff_linter:: settings:: types:: {
30
- IdentifierPattern , OutputFormat , PreviewMode , PythonVersion , RequiredVersion ,
30
+ IdentifierPattern , OutputFormat , PythonVersion , RequiredVersion ,
31
31
} ;
32
32
use ruff_linter:: { warn_user_once, RuleSelector } ;
33
33
use ruff_macros:: { CombineOptions , OptionsMetadata } ;
@@ -1500,12 +1500,9 @@ pub struct Flake8PytestStyleOptions {
1500
1500
}
1501
1501
1502
1502
impl Flake8PytestStyleOptions {
1503
- pub fn try_into_settings (
1504
- self ,
1505
- preview : PreviewMode ,
1506
- ) -> anyhow:: Result < flake8_pytest_style:: settings:: Settings > {
1503
+ pub fn try_into_settings ( self ) -> anyhow:: Result < flake8_pytest_style:: settings:: Settings > {
1507
1504
Ok ( flake8_pytest_style:: settings:: Settings {
1508
- fixture_parentheses : self . fixture_parentheses . unwrap_or ( preview . is_disabled ( ) ) ,
1505
+ fixture_parentheses : self . fixture_parentheses . unwrap_or_default ( ) ,
1509
1506
parametrize_names_type : self . parametrize_names_type . unwrap_or_default ( ) ,
1510
1507
parametrize_values_type : self . parametrize_values_type . unwrap_or_default ( ) ,
1511
1508
parametrize_values_row_type : self . parametrize_values_row_type . unwrap_or_default ( ) ,
@@ -1531,7 +1528,7 @@ impl Flake8PytestStyleOptions {
1531
1528
. transpose ( )
1532
1529
. map_err ( SettingsError :: InvalidRaisesExtendRequireMatchFor ) ?
1533
1530
. unwrap_or_default ( ) ,
1534
- mark_parentheses : self . mark_parentheses . unwrap_or ( preview . is_disabled ( ) ) ,
1531
+ mark_parentheses : self . mark_parentheses . unwrap_or_default ( ) ,
1535
1532
} )
1536
1533
}
1537
1534
}
0 commit comments