Skip to content
/ django Public

Limited lines to 119 characters in django/{contrib,db}.#3421

Closed
berkerpeksag wants to merge 1 commit intodjango:masterfrom
berkerpeksag:fix-e501
Closed

Limited lines to 119 characters in django/{contrib,db}.#3421
berkerpeksag wants to merge 1 commit intodjango:masterfrom
berkerpeksag:fix-e501

Conversation

@berkerpeksag
Copy link
Contributor

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't require it if you don't like it, but the style I prefer is

raise RuntimeError(
    "Error..."
)

(allows longer lines of text and less need to break the string up)

@berkerpeksag
Copy link
Contributor Author

Done. Thanks for the review.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check flake8, I believe this is a warning because the line identation isn't distinguished from the next (fix by add 4 more spaces to this line)

@berkerpeksag
Copy link
Contributor Author

Done. Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like to include a trailing comma in cases like this, so if more items are added, we don't need to modify that line again. Will make this change and commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@timgraham
Copy link
Member

merged in c9178ef, thanks.

@timgraham timgraham closed this Oct 29, 2014
@berkerpeksag berkerpeksag deleted the fix-e501 branch October 29, 2014 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants