File tree Expand file tree Collapse file tree 2 files changed +1
-31
lines changed
Expand file tree Collapse file tree 2 files changed +1
-31
lines changed Original file line number Diff line number Diff line change @@ -1194,11 +1194,7 @@ def merge_configuration_file(flag_args):
11941194
11951195 if "config_file" in flag_args :
11961196 config_file = pathlib .Path (flag_args ["config_file" ]).resolve ()
1197-
1198- if config_file .suffix == ".toml" :
1199- config = process_pyproject_toml (config_file )
1200- else :
1201- config = process_config_file (config_file )
1197+ config = process_config_file (config_file )
12021198
12031199 if not config :
12041200 _LOGGER .error (
Original file line number Diff line number Diff line change @@ -3385,32 +3385,6 @@ def test_config_option(self):
33853385 check = True ,
33863386 )
33873387
3388- def test_config_option_toml (self ):
3389- with temporary_file (
3390- suffix = ".toml" ,
3391- contents = (
3392- "[tool.autoflake]\n "
3393- "check = true\n "
3394- 'exclude = [\n "build",\n ".venv",\n ]'
3395- ),
3396- ) as temp_config :
3397- self .create_file ("test_me.py" )
3398- files = [self .effective_path ("test_me.py" )]
3399-
3400- args , success = autoflake .merge_configuration_file (
3401- {
3402- "files" : files ,
3403- "config_file" : temp_config ,
3404- },
3405- )
3406- assert success is True
3407- assert args == self .with_defaults (
3408- files = files ,
3409- config_file = temp_config ,
3410- check = True ,
3411- exclude = "build,.venv" ,
3412- )
3413-
34143388 def test_load_false (self ):
34153389 self .create_file ("test_me.py" )
34163390 self .create_file (
You can’t perform that action at this time.
0 commit comments