style: run linter

This commit is contained in:
Paul Gauthier (aider) 2024-09-25 11:03:25 -07:00
parent 926b3c9240
commit e74e76e51c
3 changed files with 17 additions and 8 deletions

View file

@ -194,9 +194,7 @@ def get_parser(default_config_files, git_root):
"--junior-model",
metavar="JUNIOR_MODEL",
default=None,
help=(
"Specify the model to use for junior tasks (default depends on --model)"
),
help="Specify the model to use for junior tasks (default depends on --model)",
)
group.add_argument(
"--show-model-warnings",
@ -355,19 +353,28 @@ def get_parser(default_config_files, git_root):
"--completion-menu-bg-color",
metavar="COLOR",
default="default",
help="Set the background color for the completion menu (default: terminal's default background color)",
help=(
"Set the background color for the completion menu (default: terminal's default"
" background color)"
),
)
group.add_argument(
"--completion-menu-current-color",
metavar="COLOR",
default="default",
help="Set the color for the current item in the completion menu (default: terminal's default background color)",
help=(
"Set the color for the current item in the completion menu (default: terminal's default"
" background color)"
),
)
group.add_argument(
"--completion-menu-current-bg-color",
metavar="COLOR",
default="default",
help="Set the background color for the current item in the completion menu (default: terminal's default text color)",
help=(
"Set the background color for the current item in the completion menu (default:"
" terminal's default text color)"
),
)
group.add_argument(
"--code-theme",

View file

@ -533,7 +533,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
if os.environ.get("ANTHROPIC_API_KEY"):
args.model = "claude-3-5-sonnet-20240620"
main_model = models.Model(args.model, weak_model=args.weak_model, junior_model=args.junior_model)
main_model = models.Model(
args.model, weak_model=args.weak_model, junior_model=args.junior_model
)
if args.verbose:
io.tool_output("Model info:")

View file

@ -621,7 +621,7 @@ class Model(ModelSettings):
self.weak_model_name = None
else:
self.get_weak_model(weak_model)
if junior_model is False:
self.junior_model_name = None
else: