Added a new command to run the linter on dirty files, fix problems, and then commit.

This commit is contained in:
Paul Gauthier 2024-05-18 18:35:33 -07:00
parent 7b8e603249
commit 04084883e8
4 changed files with 38 additions and 1 deletions

View file

@ -311,6 +311,12 @@ def get_parser(default_config_files, git_root):
help="Commit all pending changes with a suitable commit message, then exit",
default=False,
)
group.add_argument(
"--lint",
action="store_true",
help="Run the linter on all dirty files, fix problems and then commit.",
default=False,
)
##########
group = parser.add_argument_group("Other Settings")