Idea: A project analyzer/detective module to be used as a FawltyDeps frontend #375
Labels
more data needed
P3
minor: not priorized
research-needed
type: feature request
umbrella
would-be-nice
In relation to our ongoing experiment where we analyze popular PyPI experiment, I've been thinking about what the eventual fallout from this could be, in terms of new FawltyDeps features/improvements.
One thing we're looking to do is to get better at detecting what kind of project we're looking at, and automatically tuning the behavior of FD accordingly:
pip compile
arequirements.in
file into arequirements.txt
file, we would want FD to only look at therequirements.in
file by default (i.e.--deps=requirements.in
)If we try to bake these detectors/behavioral adjustments into FD itself, it will likely complicate the internal logic considerably, and make FD less maintainable over time. Instead, I propose a separate module/package for project detection whose sole purpose is to look at a Python project and come up with the appropriate settings for FawltyDeps to use by default.
This could be run as a one-off thing, e.g. you run
fawltydeps-detect >> pyproject.toml
to produce a TOML config section for FawltyDeps to use later, or it could be something that is run by FD as an initial phase of the analysis. It could even be structured as a wizard that asks the user relevant questions (if necessary).The main idea is that this component:
The text was updated successfully, but these errors were encountered: