24 Pull Requests
aws

aws/aws-cli

Universal Command Line Interface for Amazon Web Services
Python
View on GitHub
bug
enhancement
documentation
Contribulator score: 43 Last scored 2023-11-07 15:31:50 UTC
Contributors (5)
  • allomov
  • carsonmcdonald
  • jean
  • Rakesh9100
  • Sergius-Nyah

Pull requests (28)

Sergius-Nyah

Replace the six,PY3: is ture to aws/aws-cli 2023-12-23 09:58:58 UTC

The if six.PY3: condition could be replaced with if True: since Python 2 is no longer supported.

Replace six.PY3 condition with True. This change simplifies the code and removes the dependency on the six library.

Sergius-Nyah

Replace magic strings with constants to aws/aws-cli 2023-12-23 09:49:16 UTC

Previously, the strings 'win32' and 'darwin' are used in the code. These could be replaced with constants.
WINDOWS_PLATFORM = 'win32' and MACOS_PLATFORM = 'darwin'
". This change improves code readability by avoiding the use of magic …

Sergius-Nyah

Refactor def_main to aws/aws-cli 2023-12-23 09:19:15 UTC

This PR Refactors code in main function, by adding a docstring, to improve readability and maintainability.

Sergius-Nyah

Add docstring for u''.encode('idna') to aws/aws-cli 2023-12-23 09:12:14 UTC

Previously, I found the 'idna' import not explicit enough for people willing to understand how things work down there, so I added a docstring for ease of comprehension.

Sergius-Nyah

Replace the strings in the code with these constants. to aws/aws-cli 2023-12-23 08:58:05 UTC

The strings 'aws-cli', 'botocore', 'awscli', 's3transfer', 'urllib3' are used in the code. These could be replaced with constants. This Pull Request improves code readability and maintainability by avoiding the use of magic strings."

Sergius-Nyah

Replace string concatenation with f-string to aws/aws-cli 2023-12-23 08:17:22 UTC

The code "session.user_agent_extra = 'botocore/%s' % botocore_version" uses old-style string formatting. This could be replaced with an f-string for better readability and performance."

Sergius-Nyah

Add docstrings to all methods in the CLIDriver class. to aws/aws-cli 2023-12-23 08:12:04 UTC

Many methods in the CLIDriver class lack docstrings. Adding docstrings would improve code readability and maintainability.
Add docstrings to all methods in CLIDriver class. This change improves code readability and maintainability by pr…

Sergius-Nyah

Refactor unused variable in doc_global_options method to aws/aws-cli 2023-12-23 07:46:38 UTC

The help_command variable in the doc_global_options method is defined but not used. This PR removes the unused variable to improve code readability and maintainability.

Sergius-Nyah

Replace magic string with a constant. to aws/aws-cli 2023-12-22 15:45:23 UTC

The string 'cli:aws' used in the code could be replaced with a constant.( CLI_AWS)
This change will improve code readability and maintainability by centralizing the definition of this string.

Sergius-Nyah

Add docstring to _remove_tags_from_content method. to aws/aws-cli 2023-12-22 15:43:07 UTC

The _remove_tags_from_content method lacks a docstring for ease of code comprehension. Adding one would improve code readability and easier understanding.

Sergius-Nyah

Replaced old string formatting with new one. to aws/aws-cli 2023-12-22 15:40:49 UTC

The line cli:aws help %s' % self.help_command.name uses old-style string formatting. This could be replaced with an f-string for better code readability and performance.

Sergius-Nyah

Add docstring to API crosslink method. to aws/aws-cli 2023-12-22 14:54:02 UTC

The _add_webapi_crosslink method lacks a docstring. Adding one would improve code readability. This change improves code readability by providing a description of the method's purpose.

Sergius-Nyah

Make AWS_DOCS_BASE global to aws/aws-cli 2023-12-22 14:52:17 UTC

Initially, the AWS_DOC_BASE constant was only used in the OperationDocumentEventHandler class. If it's to be used elsewhere in the future, it would be better to make it a global constant. So I made AWS_DOC_BASE accessible throughout the …

Sergius-Nyah

Add Error handling for missing service_uid to aws/aws-cli 2023-12-22 14:05:58 UTC

The previous code assumed that service_uid will always be in service_model.metadata. It would be safer to add error handling for the case where it is not. Hence I added an error handling message for the case where its not. This change im…

Sergius-Nyah

Used modern string formatting. to aws/aws-cli 2023-12-22 14:03:42 UTC

Used the modern f-string formatting type to ease code comprehension and maintainability.

Sergius-Nyah

Replaced old-styled string formatting with f-strings. to aws/aws-cli 2023-12-22 13:12:34 UTC

The old code used old-style string formatting. This could be replaced with f-strings which are the modern string handling method, for easier code performance.

Sergius-Nyah

Remove unused paramaters from methods. to aws/aws-cli 2023-12-22 13:02:16 UTC

Some methods such as the doc_synopsis_start have parameters that are not used. Hence I removed them for ease of maintainability.

Sergius-Nyah

Add doctstring to method to aws/aws-cli 2023-12-22 12:58:13 UTC

I found the doc_breadcrumbs methods insufficiently explicit, so I decided to talk a little about what it does, for ease of comprehension.

Sergius-Nyah

Replace magic strings with global constants. to aws/aws-cli 2023-12-22 12:44:04 UTC

Previously, 'Available services, commands, and topics' were used as strings in the doc_methods. In as much as they're explicit, they're as well much more error prone than when substituted with by global constants. That is; instead of 'A…

Sergius-Nyah

Change f-string formatting. to aws/aws-cli 2023-12-22 00:34:19 UTC

Replaced old string formatting with f-string types for easier readability and conciseness

Sergius-Nyah

Rename function for clarity. to aws/aws-cli 2023-12-21 23:53:22 UTC

Rename _map_handlers to _map_event_handlers for better clarity.

Sergius-Nyah

Replace Argument string with Enum. to aws/aws-cli 2023-12-21 23:44:47 UTC

Initially, we were using string literals to represent different argument types such as 'JSON', 'document', 'streaming blob', and 'tagged union structure'. This approach can lead to potential issues such as typos and inconsistencies, and …

Sergius-Nyah

Added error handling to register method to aws/aws-cli 2023-12-21 23:09:20 UTC

"Added error handling to register method
Previously, the register method was executing the _map_handlers method without any error handling which potentially lead to unhandled exceptions if an error occurred during the execution of _ma…

Sergius-Nyah

The doc_option method was previously handling mutliple responsibiliti… to aws/aws-cli 2023-12-21 21:19:13 UTC

…es including documenting argument groups, individual arguments, adding notes, and documenting models, which made the method quite large and cumbersome. To improve this, I refactored the method into smaller and more manageable methods wh…

Rakesh9100

Adding Upgrade pip-based install syntax to aws/aws-cli 2021-12-12 22:22:49 UTC

Added certain syntax for Upgrade pip-based install aws

Issue #, if available:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

1 2 Next › Last »
  • Sponsored by  DNSimple,  Octobox &  Bugsnag
  • About
  • How to contribute?
  • Contributor pledge
  • API
  • Unsubscribe
    •  English
    •  Español
    •  Ελληνικά
    •  Português do Brasil
    •  Suomi
    •  Français
    •  Deutsch
    •  Русский
    •  Українська
    •  ไทย
    •  Italiano
    •  Norsk bokmål
    •  தமிழ்
    •  Tr
    •  简体中文
    •  正體中文
    •  日本語
    •  Čeština
    •  हिंदी
    •  Polski
    • Translate into your language!