autoimport
autoimport copied to clipboard
Autoimport automatically fixes wrong import statements.
Hi, We are trying to use autoimport in one of the huge project's python migration. I observed that default behaviour of autoimport is to fix missing import and also remove...
I'm a Cyber Security researcher and developer of PackjGuard [1] to address open-source software supply chain attacks. # Issue During my research, I found that this repo is vulnerable to...
Hi all, right now I'm not using this project and don't have the time to maintain it, I plan to start using it again in the future so I'll probably...
## Description Cannot run autoimport on a UTF-8 file with cyrillic characters on Windows. ## Steps to reproduce ``` > autoimport .py ``` ## Current behavior ``` Traceback (most recent...
## Description ## Steps to reproduce ### Input file: ```python from foo import bar class C(bar.C): def method(self, param): from foo.some_very_long_name_of_a_module.another_submodule.wait_for_it import ( yet_another_long_name ) yet_another_long_name(param) ``` Run `autoimport` on...
## Description I work on a project which has many function-local imports because top imports would cause import cycles. But I can't use autoimport because it insists on moving them...
## Description Given an import that contains unused function, autoimport exits abnormally. ## Steps to reproduce Given the following code, ```python from sympy import * from sympy.parsing.sympy_parser import (parse_expr, standard_transformations,...
## Description Given a piece of code containing at least one unused multiline import statement, autoimport exits abnormally. ## Steps to reproduce Given the following code: ```python from sympy import...
## Description Make autoimport search for the object in all the available packages. ## Possible Solution Add an entry in `_find_package` similar to `_find_package_in_typing` that deduces the package that is...
## Description https://pypi.org/project/xdg/: > xdg has been renamed to xdg-base-dirs due to an import collision with [PyXDG](https://pypi.org/project/pyxdg/). Therefore the [xdg](https://pypi.org/project/xdg/) package is deprecated. Install [xdg-base-dirs](https://pypi.org/project/xdg-base-dirs/) instead. tl;dr: you'd need to...