Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow long lines that consist of only a URL #952

Merged
merged 1 commit into from
Nov 29, 2022
Merged

Conversation

charliermarsh
Copy link
Member

In #920, we changed the line-length detection to allow long lines to end with a URL. However, we introduced a bug for the case in which a comment is only a URL, since chunks.last would return None, which we defaulted to false.

Resolves #950.

@charliermarsh charliermarsh merged commit 1617d71 into main Nov 29, 2022
@charliermarsh charliermarsh deleted the charlie/url branch November 29, 2022 01:10
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.

Ignore E501 for long URLs in comments or docstrings
1 participant