Skip to content

Commit

Permalink
refactor: be more descriptive towards variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishabh672003 committed Sep 1, 2024
1 parent 2eb5068 commit d148891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyfix_imports/fix_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pyfix_imports.pyflake import pyflake


def fix_code(filename: str, config_file: Path | None = None) -> str:
def fix_code(filename: str, config_file_path: Path | None = None) -> str:
""" Fix the python source code of a file.
Args:
Expand All @@ -19,7 +19,7 @@ def fix_code(filename: str, config_file: Path | None = None) -> str:

file_content: str = get_file_text(filename)
mod_list: set[str] = pyflake(file_content)
import_dict: dict[str, str] = config_dict(config_file)
import_dict: dict[str, str] = config_dict(config_file_path)

if mod_list:
imports: str = import_string(mod_list, import_dict)
Expand Down

0 comments on commit d148891

Please sign in to comment.