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
Option to select specific fixer to run #278
Comments
Yeah that would be nice. I think we could take module names to select like |
And perhaps |
One workaround is to use |
Add `--fixer foo` option (can be repeated) to only run specific fixers. Fixes adamchainz#278
Add `--fixer foo` option (can be repeated) to only run specific fixers. Fixes adamchainz#278
Add `--fixer foo` option (can be repeated) to only run specific fixers. Fixes adamchainz#278
Add `--fixer foo` option (can be repeated) to only run specific fixers. Fixes adamchainz#278
Hi @adamchainz I have picked up this issue, following on from a discussion on PR#333. I will Take David's PR, and expand on it for the additions that you requested:
I just have a couple of questions about the implementation/scope though:
Thanks, |
I'd be in favor of keeping |
Thanks for the links @UnknownPlatypus - I should probably clarify that I would still keep the verbose names, but have the codes as an option too. That being said, I'm not overly precious about the addition if others think it best to stick with what we already have. |
Keep it simple: a flat list of names, one per line, no header.
Just the full names of the fixer modules. No codes, for the reasons @UnknownPlatypus gave. We might rename some as part of this, to make their names clearer.
No desire right now. Most users (probably) use pre-commit, for which |
Fixes #278. Co-authored-by: Adam Johnson <me@adamj.eu>
Description
It would be nice to have the option to specify one or more fixer to apply.
One usecase is to be able to categorise the changes in several different commits, and another usecase is the codebase might not be ready to apply some of the fixes but others.
The text was updated successfully, but these errors were encountered: