You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to request the ability to extend the common_statements dict.
Possible Solution
One idea is to allow user configuration (via e.g. pyproject.toml or .autoimport.ini or CLI arguments), so that the user can add their own common statements
Additional context
As an example, I find myself typing from numpy import typing as npt quite a bit. It would be nice to automate this with autoimport.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi @Jasha10 , thank you for taking the time to open an issue.
This should be really easy to implement thanks to @dbatten5 as he already started implementing the support to read from pyproject.toml. It's not finished because the cli is not using yet the Config class. He planned to do it though to solve the #148 issue.
Now I've got the head elsewhere, but PRs are really welcome. If you need further guidance on how to code it, we can discuss it in this issue.
I've just seen that he has created the maison package to do exactly what we want. We could remove the code from autoimport and add maison as a requirement
Description
I'd like to request the ability to extend the
common_statements
dict.Possible Solution
One idea is to allow user configuration (via e.g.
pyproject.toml
or.autoimport.ini
or CLI arguments), so that the user can add their own common statementsAdditional context
As an example, I find myself typing
from numpy import typing as npt
quite a bit. It would be nice to automate this with autoimport.Thanks!
The text was updated successfully, but these errors were encountered: