General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
generic skill
Sign in to like and favorite skills
name: fix-py-line-too-long type: knowledge version: 1.0.0 agent: CodeActAgent triggers:
Break into multiple lines using parentheses or brackets:
result = some_very_long_function_name( parameter1, parameter2, parameter3 )
Use string concatenation:
"ABC" → ("A" "B" "C")
message = ("This is a very long string " "that needs to be broken up")
Add
# noqa: E501 AFTER the ending """. NEVER add it inside the docstring.
def example_function(): """This is a very long docstring that exceeds the line length limit.""" # noqa: E501 pass
# noqa: E501 inside docstrings or multi-line strings