-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Avoid overlong-line errors for lines that end with URLs #3663
Conversation
Open to input on this, it's a little bit of a subjective change. Not sure exactly how other linters handle it. |
PR Check ResultsEcosystemℹ️ ecosystem check detected changes. (+3, -273, 0 error(s)) airflow (+2, -0)
+ airflow/providers/amazon/aws/transfers/dynamodb_to_s3.py:90:10: RUF100 [*] Unused `noqa` directive (unused: `E501`)
+ tests/system/providers/google/cloud/bigtable/example_bigtable.py:43:6: RUF100 [*] Unused `noqa` directive (unused: `E501`) zulip (+1, -273)
- scripts/lib/setup_venv.py:65:101: E501 Line too long (103 > 100 characters)
- tools/lib/provision.py:72:101: E501 Line too long (102 > 100 characters)
- tools/linter_lib/custom_check.py:604:101: E501 Line too long (102 > 100 characters)
- tools/linter_lib/custom_check.py:833:101: E501 Line too long (105 > 100 characters)
- zerver/actions/realm_settings.py:434:101: E501 Line too long (105 > 100 characters)
- zerver/lib/markdown/__init__.py:243:101: E501 Line too long (160 > 100 characters)
+ zerver/lib/markdown/__init__.py:854:101: E501 Line too long (113 > 100 characters)
- zerver/lib/markdown/testing_mocks.py:151:101: E501 Line too long (126 > 100 characters)
- zerver/lib/markdown/testing_mocks.py:195:101: E501 Line too long (126 > 100 characters)
- zerver/lib/markdown/testing_mocks.py:38:101: E501 Line too long (126 > 100 characters)
- zerver/lib/markdown/testing_mocks.py:8:101: E501 Line too long (106 > 100 characters)
- zerver/lib/markdown/testing_mocks.py:98:101: E501 Line too long (126 > 100 characters)
- zerver/tests/test_email_notifications.py:1314:101: E501 Line too long (111 > 100 characters)
- zerver/tests/test_email_notifications.py:1559:101: E501 Line too long (116 > 100 characters)
- zerver/tests/test_email_notifications.py:1577:101: E501 Line too long (108 > 100 characters)
- zerver/tests/test_link_embed.py:1029:101: E501 Line too long (126 > 100 characters)
- zerver/tests/test_link_embed.py:991:101: E501 Line too long (110 > 100 characters)
- zerver/tests/test_markdown.py:1167:101: E501 Line too long (114 > 100 characters)
- zerver/tests/test_markdown.py:1188:101: E501 Line too long (104 > 100 characters)
- zerver/tests/test_markdown.py:1523:101: E501 Line too long (115 > 100 characters)
- zerver/tests/test_markdown.py:1524:101: E501 Line too long (114 > 100 characters)
- zerver/tests/test_markdown.py:1585:101: E501 Line too long (105 > 100 characters)
- zerver/tests/test_markdown.py:1645:101: E501 Line too long (115 > 100 characters)
- zerver/tests/test_markdown.py:2914:101: E501 Line too long (153 > 100 characters)
- zerver/tests/test_markdown.py:2971:101: E501 Line too long (109 > 100 characters)
- zerver/tests/test_markdown.py:2977:101: E501 Line too long (132 > 100 characters)
- zerver/tests/test_markdown.py:2983:101: E501 Line too long (109 > 100 characters)
- zerver/tests/test_markdown.py:487:101: E501 Line too long (143 > 100 characters)
- zerver/tests/test_markdown.py:537:101: E501 Line too long (181 > 100 characters)
- zerver/tests/test_markdown.py:563:101: E501 Line too long (113 > 100 characters)
- zerver/tests/test_markdown.py:617:101: E501 Line too long (144 > 100 characters)
- zerver/tests/test_markdown.py:669:101: E501 Line too long (105 > 100 characters)
- zerver/tests/test_markdown.py:706:101: E501 Line too long (183 > 100 characters)
- zerver/tests/test_markdown.py:713:101: E501 Line too long (198 > 100 characters)
- zerver/tests/test_markdown.py:722:101: E501 Line too long (207 > 100 characters)
- zerver/tests/test_markdown.py:817:101: E501 Line too long (112 > 100 characters)
- zerver/tests/test_markdown.py:819:101: E501 Line too long (220 > 100 characters)
- zerver/tests/test_markdown.py:831:101: E501 Line too long (125 > 100 characters)
- zerver/tests/test_markdown.py:849:101: E501 Line too long (219 > 100 characters)
- zerver/tests/test_markdown.py:879:101: E501 Line too long (149 > 100 characters)
- zerver/tests/test_markdown.py:884:101: E501 Line too long (104 > 100 characters)
- zerver/tests/test_markdown.py:902:101: E501 Line too long (109 > 100 characters)
- zerver/tests/test_markdown.py:919:101: E501 Line too long (121 > 100 characters)
- zerver/tests/test_markdown.py:985:101: E501 Line too long (156 > 100 characters)
- zerver/tests/test_push_notifications.py:1641:101: E501 Line too long (102 > 100 characters)
- zerver/tests/test_signup.py:195:101: E501 Line too long (103 > 100 characters)
- zerver/tests/test_signup.py:205:101: E501 Line too long (119 > 100 characters)
- zerver/tests/test_signup.py:230:101: E501 Line too long (103 > 100 characters)
- zerver/tests/test_signup.py:238:101: E501 Line too long (103 > 100 characters)
- zerver/tests/test_thumbnail.py:36:101: E501 Line too long (203 > 100 characters)
- zerver/tests/test_thumbnail.py:42:101: E501 Line too long (201 > 100 characters)
- zerver/tests/test_thumbnail.py:48:101: E501 Line too long (191 > 100 characters)
- zerver/tests/test_upload.py:1258:101: E501 Line too long (120 > 100 characters)
- zerver/tests/test_upload.py:451:101: E501 Line too long (128 > 100 characters)
- zerver/tests/test_upload_local.py:260:101: E501 Line too long (123 > 100 characters)
- zerver/tests/test_upload_s3.py:516:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/alertmanager/tests.py:13:101: E501 Line too long (174 > 100 characters)
- zerver/webhooks/alertmanager/tests.py:14:101: E501 Line too long (175 > 100 characters)
- zerver/webhooks/alertmanager/tests.py:27:101: E501 Line too long (198 > 100 characters)
- zerver/webhooks/appveyor/tests.py:15:101: E501 Line too long (119 > 100 characters)
- zerver/webhooks/appveyor/tests.py:29:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/azuredevops/tests.py:47:101: E501 Line too long (166 > 100 characters)
- zerver/webhooks/azuredevops/tests.py:55:101: E501 Line too long (164 > 100 characters)
- zerver/webhooks/basecamp/tests.py:100:101: E501 Line too long (146 > 100 characters)
- zerver/webhooks/basecamp/tests.py:104:101: E501 Line too long (143 > 100 characters)
- zerver/webhooks/basecamp/tests.py:108:101: E501 Line too long (158 > 100 characters)
- zerver/webhooks/basecamp/tests.py:112:101: E501 Line too long (156 > 100 characters)
- zerver/webhooks/basecamp/tests.py:116:101: E501 Line too long (147 > 100 characters)
- zerver/webhooks/basecamp/tests.py:120:101: E501 Line too long (135 > 100 characters)
- zerver/webhooks/basecamp/tests.py:124:101: E501 Line too long (137 > 100 characters)
- zerver/webhooks/basecamp/tests.py:128:101: E501 Line too long (133 > 100 characters)
- zerver/webhooks/basecamp/tests.py:12:101: E501 Line too long (137 > 100 characters)
- zerver/webhooks/basecamp/tests.py:132:101: E501 Line too long (143 > 100 characters)
- zerver/webhooks/basecamp/tests.py:16:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/basecamp/tests.py:20:101: E501 Line too long (151 > 100 characters)
- zerver/webhooks/basecamp/tests.py:24:101: E501 Line too long (149 > 100 characters)
- zerver/webhooks/basecamp/tests.py:28:101: E501 Line too long (138 > 100 characters)
- zerver/webhooks/basecamp/tests.py:32:101: E501 Line too long (135 > 100 characters)
- zerver/webhooks/basecamp/tests.py:36:101: E501 Line too long (135 > 100 characters)
- zerver/webhooks/basecamp/tests.py:40:101: E501 Line too long (138 > 100 characters)
- zerver/webhooks/basecamp/tests.py:64:101: E501 Line too long (137 > 100 characters)
- zerver/webhooks/basecamp/tests.py:68:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/basecamp/tests.py:72:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/basecamp/tests.py:76:101: E501 Line too long (139 > 100 characters)
- zerver/webhooks/basecamp/tests.py:80:101: E501 Line too long (144 > 100 characters)
- zerver/webhooks/basecamp/tests.py:84:101: E501 Line too long (154 > 100 characters)
- zerver/webhooks/basecamp/tests.py:88:101: E501 Line too long (139 > 100 characters)
- zerver/webhooks/basecamp/tests.py:92:101: E501 Line too long (154 > 100 characters)
- zerver/webhooks/basecamp/tests.py:96:101: E501 Line too long (143 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:101:101: E501 Line too long (127 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:156:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:165:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:16:101: E501 Line too long (103 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:26:101: E501 Line too long (103 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:36:101: E501 Line too long (120 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:37:101: E501 Line too long (115 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:52:101: E501 Line too long (120 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:53:101: E501 Line too long (115 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:67:101: E501 Line too long (120 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:68:101: E501 Line too long (115 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:79:101: E501 Line too long (120 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:80:101: E501 Line too long (115 > 100 characters)
- zerver/webhooks/beanstalk/tests.py:86:101: E501 Line too long (127 > 100 characters)
- zerver/webhooks/bitbucket/tests.py:17:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/bitbucket/tests.py:24:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/bitbucket/tests.py:35:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/bitbucket/tests.py:42:101: E501 Line too long (142 > 100 characters)
- zerver/webhooks/bitbucket/tests.py:51:101: E501 Line too long (142 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:105:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:157:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:168:101: E501 Line too long (128 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:177:101: E501 Line too long (119 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:186:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:19:101: E501 Line too long (151 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:24:101: E501 Line too long (153 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:278:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:29:101: E501 Line too long (153 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:332:101: E501 Line too long (107 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:362:101: E501 Line too long (107 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:37:101: E501 Line too long (153 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:45:101: E501 Line too long (153 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:53:101: E501 Line too long (151 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:58:101: E501 Line too long (142 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:64:101: E501 Line too long (142 > 100 characters)
- zerver/webhooks/bitbucket2/tests.py:83:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/bitbucket3/tests.py:172:101: E501 Line too long (173 > 100 characters)
- zerver/webhooks/bitbucket3/tests.py:183:101: E501 Line too long (166 > 100 characters)
- zerver/webhooks/bitbucket3/tests.py:188:101: E501 Line too long (164 > 100 characters)
- zerver/webhooks/bitbucket3/tests.py:194:101: E501 Line too long (166 > 100 characters)
- zerver/webhooks/bitbucket3/tests.py:199:101: E501 Line too long (168 > 100 characters)
- zerver/webhooks/circleci/tests.py:23:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/circleci/tests.py:50:101: E501 Line too long (142 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:107:101: E501 Line too long (129 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:113:101: E501 Line too long (139 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:117:101: E501 Line too long (143 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:159:101: E501 Line too long (141 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:172:101: E501 Line too long (131 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:176:101: E501 Line too long (144 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:180:101: E501 Line too long (133 > 100 characters)
- zerver/webhooks/clubhouse/tests.py:395:101: E501 Line too long (118 > 100 characters)
- zerver/webhooks/freshdesk/tests.py:18:101: E501 Line too long (119 > 100 characters)
- zerver/webhooks/freshdesk/tests.py:44:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/freshdesk/tests.py:64:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/gci/tests.py:11:101: E501 Line too long (180 > 100 characters)
- zerver/webhooks/gci/tests.py:16:101: E501 Line too long (183 > 100 characters)
- zerver/webhooks/gci/tests.py:21:101: E501 Line too long (180 > 100 characters)
- zerver/webhooks/gci/tests.py:26:101: E501 Line too long (178 > 100 characters)
- zerver/webhooks/gci/tests.py:31:101: E501 Line too long (175 > 100 characters)
- zerver/webhooks/gitea/tests.py:15:101: E501 Line too long (108 > 100 characters)
- zerver/webhooks/gitea/tests.py:16:101: E501 Line too long (108 > 100 characters)
- zerver/webhooks/gitea/tests.py:17:101: E501 Line too long (108 > 100 characters)
- zerver/webhooks/gitea/tests.py:18:101: E501 Line too long (108 > 100 characters)
- zerver/webhooks/gitea/tests.py:19:101: E501 Line too long (111 > 100 characters)
- zerver/webhooks/github/tests.py:117:101: E501 Line too long (122 > 100 characters)
- zerver/webhooks/github/tests.py:156:101: E501 Line too long (154 > 100 characters)
- zerver/webhooks/github/tests.py:177:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/github/tests.py:181:101: E501 Line too long (129 > 100 characters)
- zerver/webhooks/github/tests.py:187:101: E501 Line too long (168 > 100 characters)
- zerver/webhooks/github/tests.py:205:101: E501 Line too long (146 > 100 characters)
- zerver/webhooks/github/tests.py:209:101: E501 Line too long (154 > 100 characters)
- zerver/webhooks/github/tests.py:243:101: E501 Line too long (148 > 100 characters)
- zerver/webhooks/github/tests.py:249:101: E501 Line too long (194 > 100 characters)
- zerver/webhooks/github/tests.py:273:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/github/tests.py:277:101: E501 Line too long (124 > 100 characters)
- zerver/webhooks/github/tests.py:28:101: E501 Line too long (131 > 100 characters)
- zerver/webhooks/github/tests.py:295:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/github/tests.py:351:101: E501 Line too long (185 > 100 characters)
- zerver/webhooks/github/tests.py:60:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/github/tests.py:66:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/github/tests.py:73:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/github/tests.py:80:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/github/tests.py:86:101: E501 Line too long (156 > 100 characters)
- zerver/webhooks/github/tests.py:92:101: E501 Line too long (156 > 100 characters)
- zerver/webhooks/gitlab/tests.py:172:101: E501 Line too long (119 > 100 characters)
- zerver/webhooks/gitlab/tests.py:179:101: E501 Line too long (122 > 100 characters)
- zerver/webhooks/gitlab/tests.py:185:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/gitlab/tests.py:200:101: E501 Line too long (121 > 100 characters)
- zerver/webhooks/gitlab/tests.py:206:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/gitlab/tests.py:214:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/gitlab/tests.py:220:101: E501 Line too long (118 > 100 characters)
- zerver/webhooks/gitlab/tests.py:331:101: E501 Line too long (126 > 100 characters)
- zerver/webhooks/gitlab/tests.py:339:101: E501 Line too long (126 > 100 characters)
- zerver/webhooks/gitlab/tests.py:356:101: E501 Line too long (125 > 100 characters)
- zerver/webhooks/gitlab/tests.py:364:101: E501 Line too long (125 > 100 characters)
- zerver/webhooks/gitlab/tests.py:379:101: E501 Line too long (138 > 100 characters)
- zerver/webhooks/gitlab/tests.py:394:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/gitlab/tests.py:400:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/gitlab/tests.py:43:101: E501 Line too long (145 > 100 characters)
- zerver/webhooks/gitlab/tests.py:51:101: E501 Line too long (146 > 100 characters)
- zerver/webhooks/gitlab/tests.py:586:101: E501 Line too long (126 > 100 characters)
- zerver/webhooks/gitlab/tests.py:605:101: E501 Line too long (127 > 100 characters)
- zerver/webhooks/gitlab/tests.py:60:101: E501 Line too long (146 > 100 characters)
- zerver/webhooks/gogs/tests.py:16:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/gogs/tests.py:20:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/gogs/tests.py:27:101: E501 Line too long (140 > 100 characters)
- zerver/webhooks/gogs/tests.py:37:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/gogs/tests.py:42:101: E501 Line too long (141 > 100 characters)
- zerver/webhooks/gogs/tests.py:49:101: E501 Line too long (141 > 100 characters)
- zerver/webhooks/grafana/tests.py:38:101: E501 Line too long (104 > 100 characters)
- zerver/webhooks/grafana/tests.py:57:101: E501 Line too long (107 > 100 characters)
- zerver/webhooks/groove/tests.py:116:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/groove/tests.py:13:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/groove/tests.py:80:101: E501 Line too long (105 > 100 characters)
- zerver/webhooks/groove/tests.py:98:101: E501 Line too long (105 > 100 characters)
- zerver/webhooks/jira/tests.py:134:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/jira/tests.py:190:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/jira/tests.py:212:101: E501 Line too long (134 > 100 characters)
- zerver/webhooks/mention/tests.py:12:101: E501 Line too long (168 > 100 characters)
- zerver/webhooks/opbeat/tests.py:14:101: E501 Line too long (117 > 100 characters)
- zerver/webhooks/opbeat/tests.py:59:101: E501 Line too long (125 > 100 characters)
- zerver/webhooks/opbeat/tests.py:74:101: E501 Line too long (118 > 100 characters)
- zerver/webhooks/opbeat/tests.py:89:101: E501 Line too long (115 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:113:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:128:101: E501 Line too long (107 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:12:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:144:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:160:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:175:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:190:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:207:101: E501 Line too long (107 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:223:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:28:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:45:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:62:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:79:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/opsgenie/tests.py:96:101: E501 Line too long (112 > 100 characters)
- zerver/webhooks/pivotal/tests.py:75:101: E501 Line too long (102 > 100 characters)
- zerver/webhooks/rhodecode/tests.py:45:101: E501 Line too long (164 > 100 characters)
- zerver/webhooks/rhodecode/tests.py:53:101: E501 Line too long (163 > 100 characters)
- zerver/webhooks/semaphore/tests.py:22:101: E501 Line too long (152 > 100 characters)
- zerver/webhooks/semaphore/tests.py:36:101: E501 Line too long (152 > 100 characters)
- zerver/webhooks/sentry/tests.py:111:101: E501 Line too long (183 > 100 characters)
- zerver/webhooks/sentry/tests.py:124:101: E501 Line too long (176 > 100 characters)
- zerver/webhooks/sentry/tests.py:12:101: E501 Line too long (201 > 100 characters)
- zerver/webhooks/sentry/tests.py:135:101: E501 Line too long (181 > 100 characters)
- zerver/webhooks/sentry/tests.py:145:101: E501 Line too long (169 > 100 characters)
- zerver/webhooks/sentry/tests.py:155:101: E501 Line too long (177 > 100 characters)
- zerver/webhooks/sentry/tests.py:38:101: E501 Line too long (174 > 100 characters)
- zerver/webhooks/sentry/tests.py:64:101: E501 Line too long (172 > 100 characters)
- zerver/webhooks/sentry/tests.py:88:101: E501 Line too long (157 > 100 characters)
- zerver/webhooks/slack_incoming/tests.py:110:101: E501 Line too long (132 > 100 characters)
- zerver/webhooks/slack_incoming/tests.py:112:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/slack_incoming/tests.py:76:101: E501 Line too long (141 > 100 characters)
- zerver/webhooks/slack_incoming/tests.py:95:101: E501 Line too long (141 > 100 characters)
- zerver/webhooks/splunk/tests.py:110:101: E501 Line too long (186 > 100 characters)
- zerver/webhooks/splunk/tests.py:129:101: E501 Line too long (186 > 100 characters)
- zerver/webhooks/splunk/tests.py:148:101: E501 Line too long (186 > 100 characters)
- zerver/webhooks/splunk/tests.py:16:101: E501 Line too long (186 > 100 characters)
- zerver/webhooks/splunk/tests.py:35:101: E501 Line too long (216 > 100 characters)
- zerver/webhooks/splunk/tests.py:53:101: E501 Line too long (445 > 100 characters)
- zerver/webhooks/splunk/tests.py:91:101: E501 Line too long (201 > 100 characters)
- zerver/webhooks/stripe/tests.py:172:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/stripe/view.py:199:101: E501 Line too long (109 > 100 characters)
- zerver/webhooks/taiga/tests.py:111:101: E501 Line too long (151 > 100 characters)
- zerver/webhooks/taiga/tests.py:185:101: E501 Line too long (150 > 100 characters)
- zerver/webhooks/taiga/tests.py:231:101: E501 Line too long (150 > 100 characters)
- zerver/webhooks/taiga/tests.py:235:101: E501 Line too long (152 > 100 characters)
- zerver/webhooks/trello/tests.py:111:101: E501 Line too long (123 > 100 characters)
- zerver/webhooks/trello/tests.py:23:101: E501 Line too long (119 > 100 characters)
- zerver/webhooks/trello/tests.py:27:101: E501 Line too long (125 > 100 characters)
- zerver/webhooks/trello/tests.py:31:101: E501 Line too long (128 > 100 characters)
- zerver/webhooks/trello/tests.py:73:101: E501 Line too long (126 > 100 characters)
- zerver/webhooks/trello/tests.py:77:101: E501 Line too long (116 > 100 characters)
- zerver/webhooks/trello/tests.py:81:101: E501 Line too long (134 > 100 characters)
- zerver/webhooks/trello/tests.py:85:101: E501 Line too long (136 > 100 characters)
- zerver/webhooks/wekan/tests.py:118:101: E501 Line too long (155 > 100 characters)
- zerver/webhooks/wekan/tests.py:154:101: E501 Line too long (121 > 100 characters)
- zerver/webhooks/wekan/tests.py:163:101: E501 Line too long (125 > 100 characters)
- zerver/webhooks/wekan/tests.py:172:101: E501 Line too long (149 > 100 characters)
- zerver/webhooks/wekan/tests.py:199:101: E501 Line too long (143 > 100 characters)
- zproject/prod_settings_template.py:248:101: E501 Line too long (143 > 100 characters)
- zproject/prod_settings_template.py:258:101: E501 Line too long (140 > 100 characters)
- zproject/prod_settings_template.py:502:101: E501 Line too long (103 > 100 characters)
- zproject/prod_settings_template.py:661:101: E501 Line too long (108 > 100 characters) BenchmarkLinux
Windows
|
_ = """ | ||
Source: https://github.com/PyCQA/pycodestyle/pull/258/files#diff-841c622497a8033d10152bfdfb15b20b92437ecdea21a260944ea86b77b51533 | ||
""" | ||
|
||
# OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the @see
example, or is this not yet supported?
if chunks.last().map_or(true, |c| URL_REGEX.is_match(c)) { | ||
return false; | ||
} | ||
// Do not enforce the line length for lines that end with a URL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if we have
This is a long sentence that ends with a shortened URL and, therefore, could easily be broken across multiple lines ([source](https://ruff.rs))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this would be "allowed", which feels off.
I guess we could allow: (1) one word before URL (like @see https://...
), (2) entire line is a Markdown link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... becoming less sure of that approach. Here are some examples from Zulip that seem valid to me and are no longer flagged, but would be flagged based on what I just suggested:
## What portion of events are sampled (https://docs.sentry.io/platforms/javascript/configuration/sampling/):
# SENTRY_FRONTEND_SAMPLE_RATE = 1.0
# SENTRY_FRONTEND_TRACE_RATE = 0.1
expected_message = """
## [[FIRING:2] InstanceDown for api-server (env="prod", severity="critical")](https://alertmanager.local//#/alerts?receiver=default)
:chart_with_upwards_trend: **[Graph](http://generator.local/1)** :notebook: **[Runbook](https://runbook.local/1)**
"""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint's max-len rule has many different configuration options, one to ignore comments, and another to ignore URLs. I'm not sure what the right solution is but is probably why I prefer formatters where the line-width is a guidance rather than an absolute limit over line-length lint rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we ship this for now, but... we should revise the check such that it errors if the URL starts after the line-length limit.
3b6ebe2
to
6c162c9
Compare
6c162c9
to
e86787e
Compare
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `^0.0.259` -> `^0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/ixm-one/pytest-cmake-presets). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9--> Signed-off-by: Renovate Bot <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `==0.0.259` -> `==0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/pyrainbird). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMy4zIiwidXBkYXRlZEluVmVyIjoiMzUuMjMuMyJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ruff](https://togithub.com/charliermarsh/ruff) | `==0.0.259` -> `==0.0.260` | [![age](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/compatibility-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/ruff/0.0.260/confidence-slim/0.0.259)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>charliermarsh/ruff</summary> ### [`v0.0.260`](https://togithub.com/charliermarsh/ruff/releases/tag/v0.0.260) [Compare Source](https://togithub.com/charliermarsh/ruff/compare/v0.0.259...v0.0.260) <!-- Release notes generated using configuration in .github/release.yml at main --> #### What's Changed ##### Rules - \[`flake8-bugbear`] Add more immutable functions for `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3764](https://togithub.com/charliermarsh/ruff/pull/3764) - \[`flake8-bugbear`] Allow `pathlib.Path()` in `B008` by [@​rouge8](https://togithub.com/rouge8) in [https://github.com/charliermarsh/ruff/pull/3794](https://togithub.com/charliermarsh/ruff/pull/3794) - \[`flake8-bugbear`] Expand the scope of useless-expression (B018) by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3455](https://togithub.com/charliermarsh/ruff/pull/3455) - \[`flake8-bugbear`]: Implement rule `B031` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3680](https://togithub.com/charliermarsh/ruff/pull/3680) - \[`flake8-gettext`] Implement `flake8-gettext` by [@​leiserfg](https://togithub.com/leiserfg) in [https://github.com/charliermarsh/ruff/pull/3785](https://togithub.com/charliermarsh/ruff/pull/3785) - \[`flake8-logging-format`] Add support for `.log(level, msg)` calls in `flake8-logging-format` by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3726](https://togithub.com/charliermarsh/ruff/pull/3726) - \[`flake8-logging-format`] Allow aliased `logging` module as a logger candidate by [@​dhruvmanila](https://togithub.com/dhruvmanila) in [https://github.com/charliermarsh/ruff/pull/3718](https://togithub.com/charliermarsh/ruff/pull/3718) - \[`flake8-pyi`] Add autofix for `PYI014` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3729](https://togithub.com/charliermarsh/ruff/pull/3729) - \[`flake8-pyi`] Implement `PYI012` by [@​JBLDKY](https://togithub.com/JBLDKY) in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - \[`flake8-pyi`] Implement `PYI015` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3728](https://togithub.com/charliermarsh/ruff/pull/3728) - \[`flake8-simplify`] Fix SIM222 and SIM223 false negative by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3740](https://togithub.com/charliermarsh/ruff/pull/3740) - \[`isort`]: support submodules in known\_(first|third)\_party config options by [@​astaric](https://togithub.com/astaric) in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) - \[`pycodestyle`] Use unicode-width to determine line-length instead of character count by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3714](https://togithub.com/charliermarsh/ruff/pull/3714) - \[`pydocstyle`] Implement autofix for `D403` by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3731](https://togithub.com/charliermarsh/ruff/pull/3731) - \[`pylint`] Avoid `useless-import alias` (`C0414`) in `.pyi` files by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3761](https://togithub.com/charliermarsh/ruff/pull/3761) - \[`pylint`] Exempt `PLR1711` and `RET501` if non-`None` annotation by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3705](https://togithub.com/charliermarsh/ruff/pull/3705) - \[`tryceratops`] Exempt return with side effects for TRY300 by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3780](https://togithub.com/charliermarsh/ruff/pull/3780) ##### Bug Fixes - Avoid parsing `ForwardRef` contents as type references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3698](https://togithub.com/charliermarsh/ruff/pull/3698) - Avoid parsing f-strings in type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3699](https://togithub.com/charliermarsh/ruff/pull/3699) - Include `with` statements in complexity calculation by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3771](https://togithub.com/charliermarsh/ruff/pull/3771) - Use import alias locations for `pep8-naming` import rules by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3772](https://togithub.com/charliermarsh/ruff/pull/3772) - Allow `TID252` to fix all valid module paths by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3796](https://togithub.com/charliermarsh/ruff/pull/3796) - Fix SIM118 auto-fix by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3695](https://togithub.com/charliermarsh/ruff/pull/3695) - Avoid panics for implicitly concatenated forward references by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3700](https://togithub.com/charliermarsh/ruff/pull/3700) - Allow simple container literals as default values by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3703](https://togithub.com/charliermarsh/ruff/pull/3703) - Traverse over nested string type annotations by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3724](https://togithub.com/charliermarsh/ruff/pull/3724) - Use `wild::args()` and add `wild` as a dependency by [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - Avoid overlong-line errors for lines that end with URLs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3663](https://togithub.com/charliermarsh/ruff/pull/3663) - Sort statistics by count by [@​JonathanPlasse](https://togithub.com/JonathanPlasse) in [https://github.com/charliermarsh/ruff/pull/3748](https://togithub.com/charliermarsh/ruff/pull/3748) - Reduce explicit clones by [@​MichaReiser](https://togithub.com/MichaReiser) in [https://github.com/charliermarsh/ruff/pull/3793](https://togithub.com/charliermarsh/ruff/pull/3793) - Add flymake-ruff to docs by [@​charliermarsh](https://togithub.com/charliermarsh) in [https://github.com/charliermarsh/ruff/pull/3800](https://togithub.com/charliermarsh/ruff/pull/3800) #### New Contributors - [@​agriyakhetarpal](https://togithub.com/agriyakhetarpal) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3739](https://togithub.com/charliermarsh/ruff/pull/3739) - [@​leiserfg](https://togithub.com/leiserfg) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3741](https://togithub.com/charliermarsh/ruff/pull/3741) - [@​JBLDKY](https://togithub.com/JBLDKY) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3743](https://togithub.com/charliermarsh/ruff/pull/3743) - [@​astaric](https://togithub.com/astaric) made their first contribution in [https://github.com/charliermarsh/ruff/pull/3768](https://togithub.com/charliermarsh/ruff/pull/3768) **Full Changelog**: astral-sh/ruff@v0.0.259...v0.0.260 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/allenporter/flux-local). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4yMi4xIiwidXBkYXRlZEluVmVyIjoiMzUuMjIuMSJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Summary
This is (maybe?) a controversial change. Prior to this PR, we ignored overlong lines in a few cases:
TODO
comment, and the user hasignore_overlong_task_comments
enabled.There are a few cases that aren't covered, but arguably should be. The motivating issue used this example:
The first line (
[this-is-ok]
) is not flagged as overlong, because there's no whitespace, so the line can't be split up. The second line is flagged as overlong. You can fix it by changing to:But, is that really better?
This also came up in another issue:
The change enacted here is that we avoid overlong line errors if the last word contains a URL (even if it does not start with a URL, and even if the line could be split up further).
Closes #3625.
Closes #3051.