Skip to content
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

Add a non-interactive version for --fix #68

Open
thomasfr opened this issue Jun 28, 2024 · 2 comments
Open

Add a non-interactive version for --fix #68

thomasfr opened this issue Jun 28, 2024 · 2 comments

Comments

@thomasfr
Copy link

thomasfr commented Jun 28, 2024

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.

@QuiiBz
Copy link
Owner

QuiiBz commented Jun 29, 2024

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 #38 (comment)).

@thomasfr
Copy link
Author

That’s true, you are right. Haven’t thought about that. Well I guess then --fix should implicitly also call --install automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants