From 77a3b3e5c6849b180b887a97651dea8a28020b00 Mon Sep 17 00:00:00 2001 From: Rishabh <53911515+Rishabh672003@users.noreply.github.com> Date: Wed, 31 Jul 2024 23:27:13 +0530 Subject: [PATCH] update: updated the version --- pyproject.toml | 2 +- tests/import_string_test.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f590675..6e269cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyfix-imports" -version = "0.6.2" +version = "0.7.0" description = "python tool that will fix your missing imports" authors = [{ name = "Rishabh", email = "jharishabh672003@gmail.com" }] dependencies = [ diff --git a/tests/import_string_test.py b/tests/import_string_test.py index 2b962fc..8280915 100644 --- a/tests/import_string_test.py +++ b/tests/import_string_test.py @@ -1,4 +1,5 @@ from pyfix_imports.package import import_string +from pyfix_imports.predefined import predefined_imports from pyfix_imports.pyflake import pyflake from tests.test import test_code @@ -6,7 +7,7 @@ def imp_string(src): mod_list = pyflake(src) - imports = set(import_string(mod_list)) + imports = set(import_string(mod_list, predefined_imports)) return imports