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

[flake8-pytest-style] Implement pytest-unittest-raises-assertion (PT027) #6554

Merged
merged 7 commits into from
Aug 14, 2023

Conversation

harupy
Copy link
Contributor

@harupy harupy commented Aug 14, 2023

Summary

Close #6545

Test Plan

Unit tests

@github-actions
Copy link
Contributor

github-actions bot commented Aug 14, 2023

PR Check Results

Ecosystem

ℹ️ ecosystem check detected changes. (+436, -0, 0 error(s))

zulip (+436, -0)

+ analytics/tests/test_counts.py:1406:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ analytics/tests/test_counts.py:1418:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ analytics/tests/test_counts.py:290:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ analytics/tests/test_counts.py:292:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:1901:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:2459:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:2618:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:3254:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:3783:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:3794:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4284:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4375:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ corporate/tests/test_stripe.py:4378:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ corporate/tests/test_stripe.py:4704:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4715:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4745:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4779:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:4788:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:661:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ corporate/tests/test_stripe.py:677:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ tools/tests/test_template_parser.py:24:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:351:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:397:63: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:5776:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:5804:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:5812:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6142:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6156:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6168:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6187:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6194:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6198:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6211:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6359:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6365:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6372:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6415:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6473:62: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6664:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:6684:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_auth_backends.py:684:26: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:686:26: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:6993:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_auth_backends.py:702:26: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_bots.py:1746:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_bots.py:1762:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_bots.py:1775:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_bots.py:1791:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:271:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:41:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:43:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:45:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:47:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:49:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:52:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:62:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:64:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:66:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:69:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:71:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_cache.py:73:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_custom_profile_data.py:205:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_custom_profile_data.py:979:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1009:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1025:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1035:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1040:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1052:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:1065:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:157:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:164:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:180:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:202:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:214:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:226:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:244:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:274:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:284:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:388:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:414:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:437:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:896:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:902:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:905:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:914:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:920:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_decorators.py:951:22: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_decorators.py:969:22: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_email_change.py:294:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_change.py:296:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_mirror.py:112:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_mirror.py:115:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_mirror.py:129:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_mirror.py:198:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_mirror.py:207:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_notifications.py:161:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_notifications.py:172:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_notifications.py:193:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_email_notifications.py:204:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_event_system.py:248:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_event_system.py:256:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_event_system.py:270:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_event_system.py:503:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_event_system.py:533:54: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_events.py:2764:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_example.py:149:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_example.py:291:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_external.py:67:13: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_external.py:71:13: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_github.py:87:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:101:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:106:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:123:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:127:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:144:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:150:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:30:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:43:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:64:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:68:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:73:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:80:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_has_request_variables.py:97:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_import_export.py:1334:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_import_export.py:1350:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_internet.py:10:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_invite.py:1112:13: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:1414:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:1540:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:1879:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:1917:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:1944:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_invite.py:2403:12: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:128:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:151:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:185:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:189:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:217:26: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:236:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:245:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:256:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:278:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:301:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_management_commands.py:38:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:409:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:45:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:562:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:575:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:591:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:64:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:66:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:78:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:81:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_management_commands.py:86:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_markdown.py:2915:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_markdown.py:2923:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_markdown.py:2935:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_markdown.py:2950:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_markdown.py:978:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_edit.py:3809:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:115:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:129:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:135:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:267:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:297:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:365:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:371:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:415:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:418:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:478:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:506:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:521:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:549:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:563:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_fetch.py:831:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_flags.py:1494:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_send.py:1622:22: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1721:22: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1816:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1843:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1870:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1885:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:1891:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2063:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_send.py:2117:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2120:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2123:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2154:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2158:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2166:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2179:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2184:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2342:20: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2459:20: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2521:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2548:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2557:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2588:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2597:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2612:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:2666:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_message_send.py:2727:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_message_send.py:77:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_mirror_users.py:25:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_mirror_users.py:43:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:1004:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:110:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_openapi.py:119:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_openapi.py:160:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_openapi.py:175:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_openapi.py:780:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:782:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:812:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:851:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:859:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_openapi.py:98:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_outgoing_webhook_interfaces.py:58:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_outgoing_webhook_system.py:150:72: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:1240:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2544:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2551:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2562:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2573:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2579:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2713:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_push_notifications.py:2717:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_queue_worker.py:791:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_reactions.py:207:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_reactions.py:233:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm.py:121:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm.py:124:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm.py:294:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm.py:531:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm.py:78:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_domains.py:133:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_domains.py:137:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_domains.py:143:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_domains.py:148:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_domains.py:166:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_emoji.py:394:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_export.py:100:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_export.py:291:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_export.py:38:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_realm_linkifiers.py:261:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_redis_utils.py:57:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_redis_utils.py:68:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_redis_utils.py:74:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_retention.py:339:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_retention.py:648:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_scheduled_messages.py:726:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_scheduled_messages.py:729:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_scheduled_messages.py:732:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_scheduled_messages.py:748:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_scheduled_messages.py:752:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_scheduled_messages.py:757:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_send_email.py:102:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_send_email.py:136:26: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_server_settings.py:14:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_service_bot_system.py:210:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_service_bot_system.py:253:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_service_bot_system.py:364:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_service_bot_system.py:411:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_settings.py:526:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1243:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1381:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1427:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1476:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1536:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1680:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1734:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1736:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1967:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1969:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1973:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1975:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1980:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1982:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1986:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:1994:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:2408:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:3056:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:3136:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:3834:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_signup.py:3888:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_signup.py:4252:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:957:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_signup.py:989:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:136:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:140:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:147:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:151:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:156:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:160:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:167:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_slack_importer.py:228:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:1469:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:1476:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:1647:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:1678:9: PT027 Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:2366:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:2376:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:2412:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:2473:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:3067:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:3316:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:3960:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:5164:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:5181:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:5532:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:5536:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:5807:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_subs.py:6411:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6413:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6426:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6428:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6445:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6447:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6449:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6451:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6455:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6457:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6472:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:6485:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:783:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_subs.py:793:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_templates.py:125:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_templates.py:99:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_timestamp.py:31:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_timestamp.py:46:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload.py:1350:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:121:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:142:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:148:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:397:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:399:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_upload_s3.py:401:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:1045:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1047:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1051:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1055:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1059:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1064:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1069:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:1103:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:1105:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:1149:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:1298:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:2185:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_users.py:2613:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:2618:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:329:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:433:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:435:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:441:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:447:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:449:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_users.py:454:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/tests/test_validators.py:101:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:105:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:113:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:121:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:126:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:128:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:130:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:138:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:142:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:154:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:157:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:162:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:166:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:170:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:174:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:190:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:194:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:200:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:207:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:214:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:234:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:251:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:261:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:283:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:294:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:300:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:309:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:320:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:324:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:335:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:339:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:350:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:376:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:378:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:380:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:382:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:384:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:386:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:388:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:390:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:392:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:394:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:396:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:398:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:400:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:402:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:404:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:407:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:47:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:55:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:59:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:63:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:71:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:75:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:83:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:86:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:91:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_validators.py:93:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_webhooks_common.py:49:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_webhooks_common.py:82:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_webhooks_common.py:95:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/tests/test_widgets.py:19:18: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/webhooks/jira/tests.py:239:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/librato/tests.py:73:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/librato/tests.py:83:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:110:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:120:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:189:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:218:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:231:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:243:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:253:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:56:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:85:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/newrelic/tests.py:98:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/papertrail/tests.py:65:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`
+ zerver/webhooks/pivotal/tests.py:205:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/webhooks/pivotal/tests.py:221:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
+ zerver/webhooks/travis/tests.py:124:14: PT027 [*] Use `pytest.raises` instead of unittest-style `assertRaises`

Rules changed: 1
Rule Changes Additions Removals
PT027 436 436 0

Benchmark

Linux

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00      3.9±0.02ms    10.4 MB/sec    1.00      3.9±0.03ms    10.4 MB/sec
formatter/numpy/ctypeslib.py               1.00    774.8±8.92µs    21.5 MB/sec    1.00    776.8±4.50µs    21.4 MB/sec
formatter/numpy/globals.py                 1.00     78.5±0.36µs    37.6 MB/sec    1.00     78.8±0.29µs    37.5 MB/sec
formatter/pydantic/types.py                1.00  1561.1±31.90µs    16.3 MB/sec    1.00  1562.9±16.78µs    16.3 MB/sec
linter/all-rules/large/dataset.py          1.02     10.4±0.07ms     3.9 MB/sec    1.00     10.2±0.03ms     4.0 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      2.8±0.01ms     6.0 MB/sec    1.00      2.8±0.01ms     6.0 MB/sec
linter/all-rules/numpy/globals.py          1.00    393.0±2.12µs     7.5 MB/sec    1.01    397.4±4.56µs     7.4 MB/sec
linter/all-rules/pydantic/types.py         1.04      5.6±0.13ms     4.6 MB/sec    1.00      5.4±0.02ms     4.7 MB/sec
linter/default-rules/large/dataset.py      1.00      5.4±0.01ms     7.5 MB/sec    1.00      5.5±0.02ms     7.5 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1194.7±10.86µs    13.9 MB/sec    1.01   1205.2±8.32µs    13.8 MB/sec
linter/default-rules/numpy/globals.py      1.00    140.9±2.48µs    20.9 MB/sec    1.04    146.3±6.13µs    20.2 MB/sec
linter/default-rules/pydantic/types.py     1.00      2.4±0.01ms    10.4 MB/sec    1.00      2.5±0.02ms    10.4 MB/sec

Windows

group                                      main                                   pr
-----                                      ----                                   --
formatter/large/dataset.py                 1.00      4.2±0.06ms     9.7 MB/sec    1.00      4.2±0.06ms     9.7 MB/sec
formatter/numpy/ctypeslib.py               1.00   824.0±13.20µs    20.2 MB/sec    1.00   822.4±11.10µs    20.2 MB/sec
formatter/numpy/globals.py                 1.00     84.0±0.95µs    35.1 MB/sec    1.01     85.0±2.26µs    34.7 MB/sec
formatter/pydantic/types.py                1.00  1679.9±32.97µs    15.2 MB/sec    1.00  1687.0±25.68µs    15.1 MB/sec
linter/all-rules/large/dataset.py          1.00     12.6±0.10ms     3.2 MB/sec    1.00     12.6±0.10ms     3.2 MB/sec
linter/all-rules/numpy/ctypeslib.py        1.00      3.4±0.03ms     4.8 MB/sec    1.00      3.5±0.03ms     4.8 MB/sec
linter/all-rules/numpy/globals.py          1.00    435.9±5.25µs     6.8 MB/sec    1.00    436.7±6.32µs     6.8 MB/sec
linter/all-rules/pydantic/types.py         1.00      6.6±0.08ms     3.9 MB/sec    1.00      6.5±0.12ms     3.9 MB/sec
linter/default-rules/large/dataset.py      1.00      7.0±0.08ms     5.8 MB/sec    1.01      7.0±0.08ms     5.8 MB/sec
linter/default-rules/numpy/ctypeslib.py    1.00  1470.5±16.23µs    11.3 MB/sec    1.01  1480.4±17.30µs    11.2 MB/sec
linter/default-rules/numpy/globals.py      1.00    171.5±5.41µs    17.2 MB/sec    1.00    170.7±2.56µs    17.3 MB/sec
linter/default-rules/pydantic/types.py     1.00      3.1±0.03ms     8.2 MB/sec    1.00      3.1±0.03ms     8.2 MB/sec

@harupy harupy marked this pull request as ready for review August 14, 2023 11:33
@charliermarsh charliermarsh self-assigned this Aug 14, 2023
@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Aug 14, 2023
@charliermarsh charliermarsh changed the title Implement PT027 [flake8-pytest-style] Implement pytest-unittest-raises-assertion (PT027) Aug 14, 2023
@charliermarsh charliermarsh enabled auto-merge (squash) August 14, 2023 20:16
@charliermarsh
Copy link
Member

(The Zulip changes are expected. They don't use pytest, but we run with ALL on the ecosystem CI.)

@charliermarsh charliermarsh merged commit 7069606 into astral-sh:main Aug 14, 2023
16 checks passed
@harupy harupy deleted the PT027 branch August 14, 2023 22:29
renovate bot added a commit to allenporter/pyrainbird that referenced this pull request Aug 19, 2023
[![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://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `==0.0.284`
-> `==0.0.285` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.284/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.284/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.285`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.285)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.284...v0.0.285)

#### What's Changed

##### New rules

- \[`flake8-pytest-style`] Implement `pytest-unittest-raises-assertion`
(`PT027`) by [@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6554
- \[`flake8-pytest-style`] Implement
`pytest-duplicate-parametrize-test-cases` (`PT014`) by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6598
- \[`flake8-tidy-imports`] Implement `banned-module-level-imports`
(`TID253`) by [@&#8203;durumu](https://togithub.com/durumu) in
[astral-sh/ruff#6378
- \[`pylint`] Implement `bad-dunder-name` (`W3201`) (in the Ruff
nursery) by [@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6486
- \[`pylint`] Implement `subprocess-run-check` (`W1510`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#6487
- \[`ruff`] Implement `quadratic-list-summation` (`RUF017`) by
[@&#8203;evanrittenhouse](https://togithub.com/evanrittenhouse) in
[astral-sh/ruff#6489

##### Rule changes

- \[`flake8-bugbear`] Add autofix for `B006` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[astral-sh/ruff#6131
- \[`flake8-pyi`] Avoid applying `PYI055` to runtime-evaluated
annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6457
- \[`flake8-self`] Allow `os._exit` accesses in `SLF001` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6490
- \[`perflint`] Ignore `PERF203` if `try` contains loop control flow
statements by
[@&#8203;evanrittenhouse](https://togithub.com/evanrittenhouse) in
[astral-sh/ruff#6536
- \[`pylint`] Check for invalid format type specifiers in nested
replacements for `PLE1300` by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[astral-sh/ruff#6616
- \[`tryceratops`] Omit `NotImplementedError` from `TRY003` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6568

##### Settings

- Respect `.ipynb` and `.pyi` sources when linting from stdin by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6628
- Support glob patterns for `raises_require_match_for` and
`raises_require_match_for` by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6635

##### Bug Fixes

- Make `lambda-assignment` fix always-manual in class bodies by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6626
- Fix counting of message arguments when msg is provided as a keyword by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6456
- Add container types to `E721` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6469
- Respect scoping rules when identifying builtins by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6468
- Respect tab width in line-length heuristic by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6491
- Respect dummy-variable-rgx for unused bound exceptions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6492
- Fix detection of top-level imports with newlines in `E402` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6526
- Allow if-expression with dual string arms in `invalid-envvar-value` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6538
- Add deprecated unittest assertions to PT009 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6572
- Avoid unused argument rules when functions call `locals()` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6578
- Allow top-level `await` in Jupyter notebooks by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6607
- Don't detect `pandas#values` for stores, deletes, or class accesses by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6631
- Avoid removing parentheses in `E712` fix by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6575
- Skip whitespace between comments at start of file e.g. for `I002` by
[@&#8203;durumu](https://togithub.com/durumu) in
[astral-sh/ruff#6523
- Add support for nested replacements inside format specifications e.g.
for `PLE1300` by [@&#8203;zanieb](https://togithub.com/zanieb) in
[astral-sh/ruff#6616

##### Playground

- Shared playground links now use short URLs by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6383
- Fix possible JSON parse error on playground load by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6519
- Fix unreachable panic in playground by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#6623

##### Performance

- Improve tokenizer performance for ASCII only identifiers by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#6609

#### New Contributors

- [@&#8203;magic-akari](https://togithub.com/magic-akari) made their
first contribution in
[astral-sh/ruff#6472
- [@&#8203;durumu](https://togithub.com/durumu) made their first
contribution in
[astral-sh/ruff#6378
- [@&#8203;jamesbraza](https://togithub.com/jamesbraza) made their first
contribution in
[astral-sh/ruff#6520
- [@&#8203;takumaw](https://togithub.com/takumaw) made their first
contribution in
[astral-sh/ruff#6533
- [@&#8203;noklam](https://togithub.com/noklam) made their first
contribution in
[astral-sh/ruff#6573
- [@&#8203;Teraskull](https://togithub.com/Teraskull) made their first
contribution in
[astral-sh/ruff#6605

**Full Changelog**:
astral-sh/ruff@v0.0.284...v0.0.285

</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://developer.mend.io/github/allenporter/pyrainbird).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot added a commit to allenporter/flux-local that referenced this pull request Aug 20, 2023
[![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://beta.ruff.rs/docs)
([source](https://togithub.com/astral-sh/ruff),
[changelog](https://togithub.com/astral-sh/ruff/releases)) | `==0.0.284`
-> `==0.0.285` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/ruff/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/ruff/0.0.284/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.0.284/0.0.285?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>astral-sh/ruff (ruff)</summary>

###
[`v0.0.285`](https://togithub.com/astral-sh/ruff/releases/tag/v0.0.285)

[Compare
Source](https://togithub.com/astral-sh/ruff/compare/v0.0.284...v0.0.285)

#### What's Changed

##### New rules

- \[`flake8-pytest-style`] Implement `pytest-unittest-raises-assertion`
(`PT027`) by [@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6554
- \[`flake8-pytest-style`] Implement
`pytest-duplicate-parametrize-test-cases` (`PT014`) by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6598
- \[`flake8-tidy-imports`] Implement `banned-module-level-imports`
(`TID253`) by [@&#8203;durumu](https://togithub.com/durumu) in
[astral-sh/ruff#6378
- \[`pylint`] Implement `bad-dunder-name` (`W3201`) (in the Ruff
nursery) by [@&#8203;LaBatata101](https://togithub.com/LaBatata101) in
[astral-sh/ruff#6486
- \[`pylint`] Implement `subprocess-run-check` (`W1510`) by
[@&#8203;tjkuson](https://togithub.com/tjkuson) in
[astral-sh/ruff#6487
- \[`ruff`] Implement `quadratic-list-summation` (`RUF017`) by
[@&#8203;evanrittenhouse](https://togithub.com/evanrittenhouse) in
[astral-sh/ruff#6489

##### Rule changes

- \[`flake8-bugbear`] Add autofix for `B006` by
[@&#8203;qdegraaf](https://togithub.com/qdegraaf) in
[astral-sh/ruff#6131
- \[`flake8-pyi`] Avoid applying `PYI055` to runtime-evaluated
annotations by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6457
- \[`flake8-self`] Allow `os._exit` accesses in `SLF001` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6490
- \[`perflint`] Ignore `PERF203` if `try` contains loop control flow
statements by
[@&#8203;evanrittenhouse](https://togithub.com/evanrittenhouse) in
[astral-sh/ruff#6536
- \[`pylint`] Check for invalid format type specifiers in nested
replacements for `PLE1300` by
[@&#8203;zanieb](https://togithub.com/zanieb) in
[astral-sh/ruff#6616
- \[`tryceratops`] Omit `NotImplementedError` from `TRY003` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6568

##### Settings

- Respect `.ipynb` and `.pyi` sources when linting from stdin by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6628
- Support glob patterns for `raises_require_match_for` and
`raises_require_match_for` by
[@&#8203;harupy](https://togithub.com/harupy) in
[astral-sh/ruff#6635

##### Bug Fixes

- Make `lambda-assignment` fix always-manual in class bodies by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6626
- Fix counting of message arguments when msg is provided as a keyword by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6456
- Add container types to `E721` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6469
- Respect scoping rules when identifying builtins by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6468
- Respect tab width in line-length heuristic by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6491
- Respect dummy-variable-rgx for unused bound exceptions by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6492
- Fix detection of top-level imports with newlines in `E402` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6526
- Allow if-expression with dual string arms in `invalid-envvar-value` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6538
- Add deprecated unittest assertions to PT009 by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6572
- Avoid unused argument rules when functions call `locals()` by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6578
- Allow top-level `await` in Jupyter notebooks by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6607
- Don't detect `pandas#values` for stores, deletes, or class accesses by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6631
- Avoid removing parentheses in `E712` fix by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6575
- Skip whitespace between comments at start of file e.g. for `I002` by
[@&#8203;durumu](https://togithub.com/durumu) in
[astral-sh/ruff#6523
- Add support for nested replacements inside format specifications e.g.
for `PLE1300` by [@&#8203;zanieb](https://togithub.com/zanieb) in
[astral-sh/ruff#6616

##### Playground

- Shared playground links now use short URLs by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6383
- Fix possible JSON parse error on playground load by
[@&#8203;charliermarsh](https://togithub.com/charliermarsh) in
[astral-sh/ruff#6519
- Fix unreachable panic in playground by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#6623

##### Performance

- Improve tokenizer performance for ASCII only identifiers by
[@&#8203;MichaReiser](https://togithub.com/MichaReiser) in
[astral-sh/ruff#6609

#### New Contributors

- [@&#8203;magic-akari](https://togithub.com/magic-akari) made their
first contribution in
[astral-sh/ruff#6472
- [@&#8203;durumu](https://togithub.com/durumu) made their first
contribution in
[astral-sh/ruff#6378
- [@&#8203;jamesbraza](https://togithub.com/jamesbraza) made their first
contribution in
[astral-sh/ruff#6520
- [@&#8203;takumaw](https://togithub.com/takumaw) made their first
contribution in
[astral-sh/ruff#6533
- [@&#8203;noklam](https://togithub.com/noklam) made their first
contribution in
[astral-sh/ruff#6573
- [@&#8203;Teraskull](https://togithub.com/Teraskull) made their first
contribution in
[astral-sh/ruff#6605

**Full Changelog**:
astral-sh/ruff@v0.0.284...v0.0.285

</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://developer.mend.io/github/allenporter/flux-local).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement PT027 in flake8-pytest-style
2 participants