Skip to content

Commit d033ef5

Browse files
Fix lint
1 parent 9a8fd97 commit d033ef5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

linodecli/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,28 @@ def main(): # pylint: disable=too-many-branches,too-many-statements
119119
alias = parsed.alias
120120

121121
if command not in cli.ops:
122-
print(f"Error: '{command}' is not a valid command.", file=sys.stderr)
122+
print(
123+
f"Error: '{command}' is not a valid command.", file=sys.stderr
124+
)
123125
sys.exit(ExitCodes.ARGUMENT_ERROR)
124126

125127
if parsed.command == "set-custom-alias":
126128
if (alias, command) not in cli.config.get_custom_aliases().items():
127129
cli.config.set_custom_alias(alias, command)
128130
print(f"Custom alias '{alias}' set for command '{command}'")
129131
else:
130-
print(f"Custom alias '{alias}' already set for command '{command}'")
132+
print(
133+
f"Custom alias '{alias}' already set for command '{command}'"
134+
)
131135

132136
if parsed.command == "remove-custom-alias":
133137
if (alias, command) in cli.config.get_custom_aliases().items():
134138
cli.config.remove_custom_alias(alias, command)
135139
print(f"Custom alias '{alias}' removed for command '{command}'")
136140
else:
137-
print(f"Custom alias '{alias}' does not exist for command '{command}'")
141+
print(
142+
f"Custom alias '{alias}' does not exist for command '{command}'"
143+
)
138144

139145
sys.exit(ExitCodes.SUCCESS)
140146

0 commit comments

Comments
 (0)