-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto fix #393
Comments
This is a very big ask with lots of caveats and complexities. For tools like What FawltyDeps is tackling is different, in that there is often not one clear course of action:
If we assume that the above questions can be answered conclusively in a large enough proportion of cases to actually be useful, then comes the next challenge: how/where to we apply the fix? We might limit ourselves to say that we can only make fixes in dependency declarations (not in Python code), but even then, the formats are not always easy to edit:
At the very least, this issue depends in large part on something like #375 just to figure out how/where to apply any potential fixes. So my opinion for now, in summary: It is pretty much impossible for FawltyDeps to be able to fix dependency issues as well as something like |
(Sorry, fat-fingered the close button in the middle of writing my comment...) |
Is your feature request related to a problem? Please describe.
I'd rather not think too much and have it automatically add missing deps.
Describe the solution you'd like
Other tools, e.g.
ruff
, provide a--fix
flag.I would think having a
--fix
flag would then do the scanning, detect how I declare my deps, add do what is necessary to add/remove missing or unnecessary deps.Ofc any failuyre would then be reported so I can do the more complex stuff myself.
Describe alternatives you've considered
Doing it manually.
Additional context
As a first step, printing bash commands I could copy/paste/run would already be a nice improvement (I use poetry).
The text was updated successfully, but these errors were encountered: