mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
Removed redundant lint command option and added support for specifying lint commands for different languages.
This commit is contained in:
parent
06bda2d730
commit
7391903759
1 changed files with 7 additions and 10 deletions
|
@ -14,15 +14,6 @@ def get_parser(default_config_files, git_root):
|
|||
config_file_parser_class=configargparse.YAMLConfigFileParser,
|
||||
auto_env_var_prefix="AIDER_",
|
||||
)
|
||||
|
||||
##########
|
||||
group = parser.add_argument_group("Lint Settings")
|
||||
group.add_argument(
|
||||
"--lint-cmd",
|
||||
action="append",
|
||||
metavar="LINT_CMD",
|
||||
help="Specify a lint command to run. Can be specified multiple times.",
|
||||
)
|
||||
|
||||
##########
|
||||
group = parser.add_argument_group("Main")
|
||||
|
@ -321,11 +312,17 @@ def get_parser(default_config_files, git_root):
|
|||
default=False,
|
||||
)
|
||||
group.add_argument(
|
||||
"--lint-and-commit",
|
||||
"--lint",
|
||||
action="store_true",
|
||||
help="Commit, run the linter on all dirty files, fix problems and commit again",
|
||||
default=False,
|
||||
)
|
||||
group.add_argument(
|
||||
"--lint-cmd",
|
||||
action="append",
|
||||
help='Specify lint commands to run for different languages, eg: "python: flake8 --select=..." (can be used multiple times)',
|
||||
)
|
||||
|
||||
|
||||
##########
|
||||
group = parser.add_argument_group("Other Settings")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue