importmagic
importmagic copied to clipboard
A Python library for finding unresolved symbols in Python code, and the corresponding imports
importmagic 0.1.7 uses distutils.sysconfig to find some library paths and unfortunately distutils was removed in Python 3.12. This was my stab at replacing it. After glancing at I'm not sure...
I have a line like `from ...._util import a, b` and it is consistently getting reformatted by importmagic into `from ._util import a, b`.
Importmagic seems to disregard comments, which is a bit annoying when a library with import issues has specifically been `#type:ignore`'d for mypy's benefit.
Hi, thanks for the great project. Currently it seems that importmagic doesn't look for `__annotations__` properties added in recent version of python 3, so python3 syntax-aware checkers complain if I...
*Within* a single package, sometimes names beginning with underscores are things that need to be imported internally; implementation modules might be private. So if I'm working in `src/foo/_bar.py` and `_baz`...
I have done `pip install -e .` in my project where I have to import all the files as: ``` from broker._utils._log import log from broker._utils.tools import QuietExit, print_tb from...
Currently facing a lot problems with this repo on different python3 versions (3.9, 3.7). Different python versions are installed using virtualenvwrapper (if it could possibly help someone), OS: archlinux `Linux...
I am using importmagic with emacs, and thank you for writing this library and allowing me to gradually flee the slowly crumbling edifice of Pymacs and Rope. (No disrespect to...
I ran across a potential issue with importmagic with a small test case that uses type hints, the following code seems to prompt importmagic to want to import 'data': ```python...
I have a merged patch since Aug 16, 2016 and still no release. Could you do it?