Skip to content

Commit

Permalink
Run ruff check --fix --unsafe-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Dec 23, 2024
1 parent dd004a9 commit 179a173
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion awscli/customizations/ec2/bundleinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def register_bundleinstance(event_handler):
class BundleArgument(CustomArgument):

def __init__(self, storage_param, *args, **kwargs):
super(BundleArgument, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)
self._storage_param = storage_param

def _build_storage(self, params, value):
Expand Down
3 changes: 1 addition & 2 deletions awscli/customizations/ec2/decryptpassword.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def add_to_params(self, parameters, value):
if os.path.isfile(path):
self._key_path = path
service_id = self._operation_model.service_model.service_id
event = 'after-call.%s.%s' % (service_id.hyphenize(),
self._operation_model.name)
event = f'after-call.{service_id.hyphenize()}.{self._operation_model.name}'
self._session.register(event, self._decrypt_password_data)
else:
msg = ('priv-launch-key should be a path to the '
Expand Down
4 changes: 2 additions & 2 deletions awscli/customizations/ec2/secgroupsimplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _check_args(parsed_args, **kwargs):
for key in ('protocol', 'port', 'cidr',
'source_group', 'group_owner'):
if arg_dict[key]:
msg = ('The --%s option is not compatible '
'with the --ip-permissions option ') % key
msg = (f'The --{key} option is not compatible '
'with the --ip-permissions option ')
raise ParamValidationError(msg)


Expand Down
2 changes: 1 addition & 1 deletion awscli/customizations/ec2instanceconnect/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class SshCommand(BasicCommand):
DESCRIPTION = 'Connect to your EC2 instance using your OpenSSH client.'

def __init__(self, session, key_manager=None):
super(SshCommand, self).__init__(session)
super().__init__(session)
self._key_manager = KeyManager() if (key_manager is None) else key_manager

def _run_main(self, parsed_args, parsed_globals):
Expand Down

0 comments on commit 179a173

Please sign in to comment.