Back to all reviewers

Follow flake8 style guidelines

boto/boto3
Based on 2 comments
Other

Adhere to the project's established flake8 style guidelines as defined in setup.cfg. This includes: 1. Maintain line length limits of 80 characters for consistency and readability across all files.

Code Style Other

Reviewer Prompt

Adhere to the project’s established flake8 style guidelines as defined in setup.cfg. This includes:

  1. Maintain line length limits of 80 characters for consistency and readability across all files.
  2. Use proper vertical spacing in Python code, with two blank lines between top-level elements (classes and functions) to satisfy E302 requirements.
# Incorrect - exceeds 80 character line limit
def some_function(parameter1, parameter2, parameter3, parameter4, parameter5, parameter6, very_long_parameter):
    return True

# Incorrect - missing blank lines between top-level elements
import boto3
def example_function():
    pass
class ExampleClass:
    pass

# Correct formatting
import boto3

def example_function():
    pass

class ExampleClass:
    pass

Remember that these style checks are enforced both in local development and by the CI “Lint” workflow. Following these conventions consistently improves code readability and prevents CI failures.

2
Comments Analyzed
Other
Primary Language
Code Style
Category

Source Discussions