@@ -28,7 +28,7 @@ use ruff_linter::rules::{
2828 pycodestyle, pydoclint, pydocstyle, pyflakes, pylint, pyupgrade, ruff,
2929} ;
3030use ruff_linter:: settings:: types:: {
31- IdentifierPattern , OutputFormat , PreviewMode , PythonVersion , RequiredVersion ,
31+ IdentifierPattern , OutputFormat , PythonVersion , RequiredVersion ,
3232} ;
3333use ruff_linter:: { warn_user_once, RuleSelector } ;
3434use ruff_macros:: { CombineOptions , OptionsMetadata } ;
@@ -1267,9 +1267,9 @@ pub struct Flake8BuiltinsOptions {
12671267 ///
12681268 /// This option is ignored if both `strict-checking` and `builtins-strict-checking` are set.
12691269 #[ option(
1270- default = r#"true "# ,
1270+ default = r#"false "# ,
12711271 value_type = "bool" ,
1272- example = "builtins-strict-checking = false "
1272+ example = "builtins-strict-checking = true "
12731273 ) ]
12741274 #[ deprecated(
12751275 since = "0.10.0" ,
@@ -1280,21 +1280,16 @@ pub struct Flake8BuiltinsOptions {
12801280 /// Compare module names instead of full module paths.
12811281 ///
12821282 /// Used by [`A005` - `stdlib-module-shadowing`](https://docs.astral.sh/ruff/rules/stdlib-module-shadowing/).
1283- ///
1284- /// In preview mode the default value is `false` rather than `true`.
12851283 #[ option(
1286- default = r#"true "# ,
1284+ default = r#"false "# ,
12871285 value_type = "bool" ,
1288- example = "strict-checking = false "
1286+ example = "strict-checking = true "
12891287 ) ]
12901288 pub strict_checking : Option < bool > ,
12911289}
12921290
12931291impl Flake8BuiltinsOptions {
1294- pub fn into_settings (
1295- self ,
1296- preview : PreviewMode ,
1297- ) -> ruff_linter:: rules:: flake8_builtins:: settings:: Settings {
1292+ pub fn into_settings ( self ) -> ruff_linter:: rules:: flake8_builtins:: settings:: Settings {
12981293 #[ allow( deprecated) ]
12991294 ruff_linter:: rules:: flake8_builtins:: settings:: Settings {
13001295 ignorelist : self
@@ -1309,7 +1304,7 @@ impl Flake8BuiltinsOptions {
13091304 . strict_checking
13101305 . or ( self . builtins_strict_checking )
13111306 // use the old default of true on non-preview
1312- . unwrap_or ( preview . is_disabled ( ) ) ,
1307+ . unwrap_or_default ( ) ,
13131308 }
13141309 }
13151310}
0 commit comments