zulip/zerver/management/commands
Anders Kaseorg 9f25117884 ruff: Fix SIM115 Use a context manager for opening files.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 71ca928ec9)
2024-11-20 18:24:25 -08:00
..
__init__.py
add_users_to_streams.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
archive_messages.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
audit_fts_indexes.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
backup.py ruff: Fix SIM115 Use a context manager for opening files. 2024-11-20 18:24:25 -08:00
bulk_change_user_name.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_auth_backends.py management: Add change_auth_backends command. 2024-08-15 00:11:42 -07:00
change_password.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
change_realm_subdomain.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_user_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
change_user_role.py change_user_role: List role choices in --help output. 2023-12-14 15:06:18 -08:00
check_redis.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
checkconfig.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
compilemessages.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
convert_mattermost_data.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
convert_rocketchat_data.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
convert_slack_data.py slack: Clean up expanded zipfiles more consistently. 2024-11-18 18:32:25 -08:00
create_default_stream_groups.py ruff: Fix FURB105 Unnecessary empty string passed to `print`. 2024-06-30 22:37:15 -07:00
create_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_realm_internal_bots.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
create_stream.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
create_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
deactivate_realm.py realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
deactivate_user.py ruff: Fix FURB105 Unnecessary empty string passed to `print`. 2024-06-30 22:37:15 -07:00
delete_old_unclaimed_attachments.py thumbnail: Move get_image_thumbnail_path and split_thumbnail_path. 2024-07-18 13:50:28 -07:00
delete_realm.py refactor: Rename `Huddle` Django model class to `DirectMessageGroup`. 2024-07-07 21:31:30 -07:00
delete_user.py ruff: Fix UP032 Use f-string instead of `format` call. 2024-03-21 08:59:17 -07:00
deliver_scheduled_emails.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
deliver_scheduled_messages.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
edit_linkifiers.py models: Extract zerver.models.linkifiers. 2023-12-16 22:08:44 -08:00
email_mirror.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
enqueue_digest_emails.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
enqueue_file.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
export.py realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
export_search.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
export_single_user.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
export_usermessage_batch.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
fetch_tor_exit_nodes.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
fill_memcached_caches.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
generate_realm_creation_link.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
get_migration_status.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
import.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
list_realms.py models: Replace realm.uri with realm.url. 2024-05-08 11:12:43 -07:00
logout_all_users.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
makemessages.py ruff: Fix B905 `zip()` without an explicit `strict=` parameter. 2024-07-13 22:28:22 -07:00
merge_streams.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
process_queue.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00
promote_new_full_members.py management: Add lockfiles to all _once management jobs. 2024-04-24 14:40:28 -07:00
purge_queue.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
query_ldap.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
rate_limit.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
reactivate_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
realm_domain.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
register_server.py settings: Rework how push notifications service is configured. 2024-07-17 17:14:06 -07:00
remove_users_from_stream.py models: Extract zerver.models.streams. 2023-12-16 22:08:44 -08:00
reset_authentication_attempt_count.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
restore_messages.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
runtornado.py runtornado: Remove explicit AsyncIOMainLoop installation. 2024-07-16 14:01:32 -07:00
scrub_realm.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_custom_email.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
send_password_reset_email.py emails: Replace occurrences of uri with url in email templates. 2024-05-24 11:18:35 -07:00
send_realm_reactivation_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_test_email.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_to_email_mirror.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
send_webhook_fixture_message.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
send_welcome_bot_message.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
send_zulip_update_announcements.py management: Provide a common lockfile dir, and a decorator for it. 2024-04-24 14:40:28 -07:00
show_admins.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
soft_deactivate_users.py ruff: Fix UP006 Use `list` instead of `List` for type annotation. 2024-07-13 22:28:22 -07:00
sync_ldap_user_data.py python: Avoid relying on Collection supertype of QuerySet. 2024-04-16 23:02:16 -07:00
transfer_uploads_to_s3.py management: Move commands to all use ZulipBaseCommand. 2024-05-24 10:30:16 -07:00
unarchive_channel.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00