Open thomasfr opened 1 week ago
Auto-fixing the dependencies would require to refresh the lockfile, which the user might forgot to do if Sherif was run automatically via a pre-commit hook (unless we do https://github.com/QuiiBz/sherif/issues/38#issuecomment-2198020817).
That’s true, you are right. Haven’t thought about that. Well I guess then --fix should implicitly also call --install automatically.
In order to run sherif in pre-commit hooks for example, it would be necessary to be able to run
sherif --fix
in non-interactive mode. For instance by specifying which version it should change it to (e.g--highest
,--lowest
,--in-between
) together with --fix it should run in non-interactive mode and not ask for any inputs, just fix it.