From fcf1dbbba676df6afb0837d1460b40faa0cef6ed Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 23:43:02 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - [github.com/psf/black: 23.3.0 → 24.2.0](https://github.com/psf/black/compare/23.3.0...24.2.0) - [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.8.0) - [github.com/python-poetry/poetry: 1.4.2 → 1.7.0](https://github.com/python-poetry/poetry/compare/1.4.2...1.7.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6da31771..e11dbe83 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-ast - id: check-docstring-first @@ -11,7 +11,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: @@ -19,11 +19,11 @@ repos: - black - --filter-files - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.8.0 hooks: - id: mypy additional_dependencies: @@ -36,7 +36,7 @@ repos: - types-pytz>=2023.3.0.0,<2023.4.0 - types-redis>=4.5.4.1,<4.6.0.0 - repo: https://github.com/python-poetry/poetry - rev: 1.4.2 + rev: 1.7.0 hooks: - id: poetry-check # - id: poetry-lock From 4547b9298626ef8cea55b9e95ed0589aa4119dac Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 23:43:19 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../database/migrations/versions/02338256c6aa_add_events.py | 1 + .../versions/03e3fe94e1ed_add_other_gender_option.py | 1 + .../versions/07061a7c250f_add_application_resume.py | 1 + .../0cf086aa6b96_remove_application_draft_status.py | 1 + .../versions/108677b68119_add_application_flagged.py | 1 + .../migrations/versions/111fd0c489b8_add_providers_table.py | 1 + .../11505f38b11f_delete_applications_on_participant_.py | 1 + .../versions/185da460c739_add_link_column_to_events.py | 1 + .../versions/204f901e04ea_add_school_review_flag.py | 1 + .../versions/20f5d14a594a_add_legal_agreement_flag.py | 1 + .../2693c4ff6368_recipient_use_composite_primary_key.py | 1 + .../versions/2d60be9a5968_add_description_to_events.py | 1 + ...30c18033bf06_unique_swag_tier_attendance_requirements.py | 1 + .../versions/32c905599391_add_legal_agreements_table.py | 1 + .../versions/378a9b9a491b_remove_legal_agreements_table.py | 1 + .../versions/39df5dce6493_timezone_aware_timestamps.py | 1 + .../versions/3d5fffb36407_add_check_in_start_and_end.py | 1 + .../versions/3f3fbcf548e9_add_application_created_at.py | 1 + .../41f361ac6a74_add_school_abbreviations_and_acronyms.py | 1 + .../migrations/versions/423e059e8b64_add_schools.py | 1 + .../migrations/versions/49a35dc6c31d_add_swag_tiers.py | 1 + .../versions/55cbf28ab22e_convert_message_sent_to_enum.py | 1 + .../5663152229b0_change_participant_id_to_integer.py | 1 + .../58d2280520b8_add_participant_and_application.py | 1 + .../versions/5a4b8a4896fb_add_application_draft_status.py | 1 + .../versions/5bebce7e47f3_add_index_to_event_code.py | 1 + .../62b0211f43d3_add_checked_in_status_to_participant.py | 1 + .../versions/6369ca71dc38_convert_country_to_string.py | 1 + .../versions/7563cb70be2d_add_rendered_to_messages.py | 1 + .../migrations/versions/76b084e37b34_add_exports_table.py | 1 + ...782abe80eff2_add_function_to_convert_from_boolean_to_.py | 1 + .../versions/7afacd80d932_participant_id_as_string.py | 1 + .../versions/7f51ce38bc57_remove_messages_server_default.py | 1 + .../versions/7ffc93357b98_set_swag_tier_in_trigger.py | 1 + .../8b11d0c53677_make_applications_date_of_birth_a_date.py | 1 + .../migrations/versions/8d04b7943264_seed_schools.py | 1 + .../98708b2dcb89_collect_participant_phone_number.py | 1 + .../migrations/versions/9d8576b906ff_add_event_feedback.py | 1 + .../versions/9ff5970188bf_remove_discord_linking.py | 1 + .../versions/a2327cf14296_add_application_notes.py | 1 + .../a85d78552b07_make_participant_id_autoincrement.py | 1 + .../migrations/versions/ad76fc957eec_add_discord_linking.py | 1 + .../versions/b1316c845fab_add_participant_is_admin_flag.py | 1 + .../versions/b5ac23c43648_timezone_aware_timestamps_for_.py | 1 + .../versions/bac759e7498c_add_participant_role.py | 1 + .../versions/c1b1ed99e50d_add_sending_message_status.py | 1 + .../versions/c2d6f3f46dfa_add_application_status.py | 1 + .../migrations/versions/c7416886f30d_add_countries.py | 1 + .../versions/c94b4d9f880f_add_event_attendance.py | 1 + .../migrations/versions/cedc0da31c8f_add_settings.py | 1 + .../migrations/versions/d2388da5bbfd_add_messages.py | 1 + .../versions/d32dcfa45423_remove_participant_id_sequence.py | 1 + .../versions/eb8fe5a0a086_add_automated_message_triggers.py | 1 + .../ed2fee02e591_add_project_code_to_participants_table.py | 1 + .../migrations/versions/ef1249d3aa86_add_webhooks_table.py | 1 + .../f31d5d917595_require_gender_and_race_ethnicity.py | 1 + .../versions/f33cced0cb75_add_is_html_to_messages.py | 1 + .../fcdb492ecec9_add_tracks_attendance_to_events_table.py | 1 + common/database/tables/settings.py | 6 ++---- 59 files changed, 60 insertions(+), 4 deletions(-) diff --git a/common/database/migrations/versions/02338256c6aa_add_events.py b/common/database/migrations/versions/02338256c6aa_add_events.py index e1c7cfed..88114b1f 100644 --- a/common/database/migrations/versions/02338256c6aa_add_events.py +++ b/common/database/migrations/versions/02338256c6aa_add_events.py @@ -5,6 +5,7 @@ Create Date: 2022-06-01 03:17:51.063172+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/03e3fe94e1ed_add_other_gender_option.py b/common/database/migrations/versions/03e3fe94e1ed_add_other_gender_option.py index c5dc7050..b4d854e0 100644 --- a/common/database/migrations/versions/03e3fe94e1ed_add_other_gender_option.py +++ b/common/database/migrations/versions/03e3fe94e1ed_add_other_gender_option.py @@ -5,6 +5,7 @@ Create Date: 2022-04-17 22:13:00.167426+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/07061a7c250f_add_application_resume.py b/common/database/migrations/versions/07061a7c250f_add_application_resume.py index f9295c85..57d1c40a 100644 --- a/common/database/migrations/versions/07061a7c250f_add_application_resume.py +++ b/common/database/migrations/versions/07061a7c250f_add_application_resume.py @@ -5,6 +5,7 @@ Create Date: 2022-04-26 08:00:47.428979+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/0cf086aa6b96_remove_application_draft_status.py b/common/database/migrations/versions/0cf086aa6b96_remove_application_draft_status.py index 47de3865..e387233c 100644 --- a/common/database/migrations/versions/0cf086aa6b96_remove_application_draft_status.py +++ b/common/database/migrations/versions/0cf086aa6b96_remove_application_draft_status.py @@ -5,6 +5,7 @@ Create Date: 2022-05-29 20:48:52.443056+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/108677b68119_add_application_flagged.py b/common/database/migrations/versions/108677b68119_add_application_flagged.py index 9ae341be..d9d5e20a 100644 --- a/common/database/migrations/versions/108677b68119_add_application_flagged.py +++ b/common/database/migrations/versions/108677b68119_add_application_flagged.py @@ -5,6 +5,7 @@ Create Date: 2022-05-30 21:45:48.595341+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/111fd0c489b8_add_providers_table.py b/common/database/migrations/versions/111fd0c489b8_add_providers_table.py index fc664122..cec057b0 100644 --- a/common/database/migrations/versions/111fd0c489b8_add_providers_table.py +++ b/common/database/migrations/versions/111fd0c489b8_add_providers_table.py @@ -5,6 +5,7 @@ Create Date: 2023-04-17 23:38:03.878796+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/11505f38b11f_delete_applications_on_participant_.py b/common/database/migrations/versions/11505f38b11f_delete_applications_on_participant_.py index b6e43345..01ade785 100644 --- a/common/database/migrations/versions/11505f38b11f_delete_applications_on_participant_.py +++ b/common/database/migrations/versions/11505f38b11f_delete_applications_on_participant_.py @@ -5,6 +5,7 @@ Create Date: 2022-04-02 22:27:13.162802+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/185da460c739_add_link_column_to_events.py b/common/database/migrations/versions/185da460c739_add_link_column_to_events.py index b6f1e854..05c7d7fe 100644 --- a/common/database/migrations/versions/185da460c739_add_link_column_to_events.py +++ b/common/database/migrations/versions/185da460c739_add_link_column_to_events.py @@ -5,6 +5,7 @@ Create Date: 2023-06-11 06:01:59.803646+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/204f901e04ea_add_school_review_flag.py b/common/database/migrations/versions/204f901e04ea_add_school_review_flag.py index 859da3b5..0ff9e4d3 100644 --- a/common/database/migrations/versions/204f901e04ea_add_school_review_flag.py +++ b/common/database/migrations/versions/204f901e04ea_add_school_review_flag.py @@ -5,6 +5,7 @@ Create Date: 2022-06-07 07:09:26.865100+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/20f5d14a594a_add_legal_agreement_flag.py b/common/database/migrations/versions/20f5d14a594a_add_legal_agreement_flag.py index 516fe46d..1b980e5a 100644 --- a/common/database/migrations/versions/20f5d14a594a_add_legal_agreement_flag.py +++ b/common/database/migrations/versions/20f5d14a594a_add_legal_agreement_flag.py @@ -5,6 +5,7 @@ Create Date: 2022-02-15 07:48:27.640531+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/2693c4ff6368_recipient_use_composite_primary_key.py b/common/database/migrations/versions/2693c4ff6368_recipient_use_composite_primary_key.py index 0d73b64f..ac025a51 100644 --- a/common/database/migrations/versions/2693c4ff6368_recipient_use_composite_primary_key.py +++ b/common/database/migrations/versions/2693c4ff6368_recipient_use_composite_primary_key.py @@ -5,6 +5,7 @@ Create Date: 2022-05-06 20:39:56.757617+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/2d60be9a5968_add_description_to_events.py b/common/database/migrations/versions/2d60be9a5968_add_description_to_events.py index 8ac61d00..aa2ba5d0 100644 --- a/common/database/migrations/versions/2d60be9a5968_add_description_to_events.py +++ b/common/database/migrations/versions/2d60be9a5968_add_description_to_events.py @@ -5,6 +5,7 @@ Create Date: 2023-06-20 14:31:43.524717+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/30c18033bf06_unique_swag_tier_attendance_requirements.py b/common/database/migrations/versions/30c18033bf06_unique_swag_tier_attendance_requirements.py index c7079bed..5a67d78c 100644 --- a/common/database/migrations/versions/30c18033bf06_unique_swag_tier_attendance_requirements.py +++ b/common/database/migrations/versions/30c18033bf06_unique_swag_tier_attendance_requirements.py @@ -5,6 +5,7 @@ Create Date: 2022-06-04 00:50:58.141711+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/32c905599391_add_legal_agreements_table.py b/common/database/migrations/versions/32c905599391_add_legal_agreements_table.py index 5206460f..0a8a33a3 100644 --- a/common/database/migrations/versions/32c905599391_add_legal_agreements_table.py +++ b/common/database/migrations/versions/32c905599391_add_legal_agreements_table.py @@ -5,6 +5,7 @@ Create Date: 2022-02-15 07:54:15.807245+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/378a9b9a491b_remove_legal_agreements_table.py b/common/database/migrations/versions/378a9b9a491b_remove_legal_agreements_table.py index a2ea66ae..69610ae0 100644 --- a/common/database/migrations/versions/378a9b9a491b_remove_legal_agreements_table.py +++ b/common/database/migrations/versions/378a9b9a491b_remove_legal_agreements_table.py @@ -5,6 +5,7 @@ Create Date: 2022-04-19 08:34:56.276261+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/39df5dce6493_timezone_aware_timestamps.py b/common/database/migrations/versions/39df5dce6493_timezone_aware_timestamps.py index 137e3042..e49c10d0 100644 --- a/common/database/migrations/versions/39df5dce6493_timezone_aware_timestamps.py +++ b/common/database/migrations/versions/39df5dce6493_timezone_aware_timestamps.py @@ -5,6 +5,7 @@ Create Date: 2022-05-06 19:02:26.667460+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/3d5fffb36407_add_check_in_start_and_end.py b/common/database/migrations/versions/3d5fffb36407_add_check_in_start_and_end.py index a5349449..9d273b9b 100644 --- a/common/database/migrations/versions/3d5fffb36407_add_check_in_start_and_end.py +++ b/common/database/migrations/versions/3d5fffb36407_add_check_in_start_and_end.py @@ -5,6 +5,7 @@ Create Date: 2023-06-17 05:15:11.630162+00:00 """ + from datetime import datetime import pytz diff --git a/common/database/migrations/versions/3f3fbcf548e9_add_application_created_at.py b/common/database/migrations/versions/3f3fbcf548e9_add_application_created_at.py index 469606ee..f2511958 100644 --- a/common/database/migrations/versions/3f3fbcf548e9_add_application_created_at.py +++ b/common/database/migrations/versions/3f3fbcf548e9_add_application_created_at.py @@ -5,6 +5,7 @@ Create Date: 2022-04-30 08:01:06.360411+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/41f361ac6a74_add_school_abbreviations_and_acronyms.py b/common/database/migrations/versions/41f361ac6a74_add_school_abbreviations_and_acronyms.py index b7f4fbdf..07d0f42c 100644 --- a/common/database/migrations/versions/41f361ac6a74_add_school_abbreviations_and_acronyms.py +++ b/common/database/migrations/versions/41f361ac6a74_add_school_abbreviations_and_acronyms.py @@ -5,6 +5,7 @@ Create Date: 2022-06-07 03:48:15.445488+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/423e059e8b64_add_schools.py b/common/database/migrations/versions/423e059e8b64_add_schools.py index c73af5b2..40b6eea9 100644 --- a/common/database/migrations/versions/423e059e8b64_add_schools.py +++ b/common/database/migrations/versions/423e059e8b64_add_schools.py @@ -5,6 +5,7 @@ Create Date: 2022-02-12 07:44:42.189067+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/49a35dc6c31d_add_swag_tiers.py b/common/database/migrations/versions/49a35dc6c31d_add_swag_tiers.py index 181c5f27..72d2933b 100644 --- a/common/database/migrations/versions/49a35dc6c31d_add_swag_tiers.py +++ b/common/database/migrations/versions/49a35dc6c31d_add_swag_tiers.py @@ -5,6 +5,7 @@ Create Date: 2022-06-01 05:58:25.373228+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/55cbf28ab22e_convert_message_sent_to_enum.py b/common/database/migrations/versions/55cbf28ab22e_convert_message_sent_to_enum.py index c7f55271..ee345f24 100644 --- a/common/database/migrations/versions/55cbf28ab22e_convert_message_sent_to_enum.py +++ b/common/database/migrations/versions/55cbf28ab22e_convert_message_sent_to_enum.py @@ -5,6 +5,7 @@ Create Date: 2022-06-06 06:07:27.120547+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/5663152229b0_change_participant_id_to_integer.py b/common/database/migrations/versions/5663152229b0_change_participant_id_to_integer.py index 32d9b3b9..831913a9 100644 --- a/common/database/migrations/versions/5663152229b0_change_participant_id_to_integer.py +++ b/common/database/migrations/versions/5663152229b0_change_participant_id_to_integer.py @@ -5,6 +5,7 @@ Create Date: 2023-04-18 02:37:08.065079+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/58d2280520b8_add_participant_and_application.py b/common/database/migrations/versions/58d2280520b8_add_participant_and_application.py index 0aded96f..b07547d9 100644 --- a/common/database/migrations/versions/58d2280520b8_add_participant_and_application.py +++ b/common/database/migrations/versions/58d2280520b8_add_participant_and_application.py @@ -5,6 +5,7 @@ Create Date: 2022-02-12 07:30:30.427270+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/5a4b8a4896fb_add_application_draft_status.py b/common/database/migrations/versions/5a4b8a4896fb_add_application_draft_status.py index 04ccf50c..4da25a58 100644 --- a/common/database/migrations/versions/5a4b8a4896fb_add_application_draft_status.py +++ b/common/database/migrations/versions/5a4b8a4896fb_add_application_draft_status.py @@ -5,6 +5,7 @@ Create Date: 2022-05-29 01:14:04.196440+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/5bebce7e47f3_add_index_to_event_code.py b/common/database/migrations/versions/5bebce7e47f3_add_index_to_event_code.py index e98dd94b..50734308 100644 --- a/common/database/migrations/versions/5bebce7e47f3_add_index_to_event_code.py +++ b/common/database/migrations/versions/5bebce7e47f3_add_index_to_event_code.py @@ -5,6 +5,7 @@ Create Date: 2023-06-17 02:52:51.180893+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/62b0211f43d3_add_checked_in_status_to_participant.py b/common/database/migrations/versions/62b0211f43d3_add_checked_in_status_to_participant.py index 912c891c..1bf8f196 100644 --- a/common/database/migrations/versions/62b0211f43d3_add_checked_in_status_to_participant.py +++ b/common/database/migrations/versions/62b0211f43d3_add_checked_in_status_to_participant.py @@ -5,6 +5,7 @@ Create Date: 2023-06-17 04:23:16.089372+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/6369ca71dc38_convert_country_to_string.py b/common/database/migrations/versions/6369ca71dc38_convert_country_to_string.py index 3fb59aff..512e69a9 100644 --- a/common/database/migrations/versions/6369ca71dc38_convert_country_to_string.py +++ b/common/database/migrations/versions/6369ca71dc38_convert_country_to_string.py @@ -5,6 +5,7 @@ Create Date: 2022-04-18 06:17:29.348172+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/7563cb70be2d_add_rendered_to_messages.py b/common/database/migrations/versions/7563cb70be2d_add_rendered_to_messages.py index f1b0fc08..ff0802fb 100644 --- a/common/database/migrations/versions/7563cb70be2d_add_rendered_to_messages.py +++ b/common/database/migrations/versions/7563cb70be2d_add_rendered_to_messages.py @@ -5,6 +5,7 @@ Create Date: 2022-05-14 10:06:18.749900+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/76b084e37b34_add_exports_table.py b/common/database/migrations/versions/76b084e37b34_add_exports_table.py index cadaa8c6..aaa40533 100644 --- a/common/database/migrations/versions/76b084e37b34_add_exports_table.py +++ b/common/database/migrations/versions/76b084e37b34_add_exports_table.py @@ -5,6 +5,7 @@ Create Date: 2023-06-05 18:41:25.435224+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/782abe80eff2_add_function_to_convert_from_boolean_to_.py b/common/database/migrations/versions/782abe80eff2_add_function_to_convert_from_boolean_to_.py index 8bf13d3b..1b20416f 100644 --- a/common/database/migrations/versions/782abe80eff2_add_function_to_convert_from_boolean_to_.py +++ b/common/database/migrations/versions/782abe80eff2_add_function_to_convert_from_boolean_to_.py @@ -5,6 +5,7 @@ Create Date: 2023-06-22 16:11:31.724421+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/7afacd80d932_participant_id_as_string.py b/common/database/migrations/versions/7afacd80d932_participant_id_as_string.py index 5e8898bf..d248b74f 100644 --- a/common/database/migrations/versions/7afacd80d932_participant_id_as_string.py +++ b/common/database/migrations/versions/7afacd80d932_participant_id_as_string.py @@ -5,6 +5,7 @@ Create Date: 2022-04-04 04:34:56.202331+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/7f51ce38bc57_remove_messages_server_default.py b/common/database/migrations/versions/7f51ce38bc57_remove_messages_server_default.py index 066dbadb..19b07af4 100644 --- a/common/database/migrations/versions/7f51ce38bc57_remove_messages_server_default.py +++ b/common/database/migrations/versions/7f51ce38bc57_remove_messages_server_default.py @@ -5,6 +5,7 @@ Create Date: 2022-05-06 18:55:36.778505+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/7ffc93357b98_set_swag_tier_in_trigger.py b/common/database/migrations/versions/7ffc93357b98_set_swag_tier_in_trigger.py index ba372c1d..103924cc 100644 --- a/common/database/migrations/versions/7ffc93357b98_set_swag_tier_in_trigger.py +++ b/common/database/migrations/versions/7ffc93357b98_set_swag_tier_in_trigger.py @@ -5,6 +5,7 @@ Create Date: 2022-06-04 01:33:56.049202+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/8b11d0c53677_make_applications_date_of_birth_a_date.py b/common/database/migrations/versions/8b11d0c53677_make_applications_date_of_birth_a_date.py index f4be8459..4c5ac8e9 100644 --- a/common/database/migrations/versions/8b11d0c53677_make_applications_date_of_birth_a_date.py +++ b/common/database/migrations/versions/8b11d0c53677_make_applications_date_of_birth_a_date.py @@ -5,6 +5,7 @@ Create Date: 2023-05-21 20:05:05.883852+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/8d04b7943264_seed_schools.py b/common/database/migrations/versions/8d04b7943264_seed_schools.py index 62e101fd..68f27e9d 100644 --- a/common/database/migrations/versions/8d04b7943264_seed_schools.py +++ b/common/database/migrations/versions/8d04b7943264_seed_schools.py @@ -5,6 +5,7 @@ Create Date: 2022-04-18 00:38:38.618682+00:00 """ + import json from os import getcwd from pathlib import Path diff --git a/common/database/migrations/versions/98708b2dcb89_collect_participant_phone_number.py b/common/database/migrations/versions/98708b2dcb89_collect_participant_phone_number.py index 9205b491..3ce38d77 100644 --- a/common/database/migrations/versions/98708b2dcb89_collect_participant_phone_number.py +++ b/common/database/migrations/versions/98708b2dcb89_collect_participant_phone_number.py @@ -5,6 +5,7 @@ Create Date: 2022-05-15 07:19:48.421325+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/9d8576b906ff_add_event_feedback.py b/common/database/migrations/versions/9d8576b906ff_add_event_feedback.py index 3be30be9..051de7d7 100644 --- a/common/database/migrations/versions/9d8576b906ff_add_event_feedback.py +++ b/common/database/migrations/versions/9d8576b906ff_add_event_feedback.py @@ -5,6 +5,7 @@ Create Date: 2022-06-01 16:23:08.073954+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/9ff5970188bf_remove_discord_linking.py b/common/database/migrations/versions/9ff5970188bf_remove_discord_linking.py index 0990ea06..2bdfa10f 100644 --- a/common/database/migrations/versions/9ff5970188bf_remove_discord_linking.py +++ b/common/database/migrations/versions/9ff5970188bf_remove_discord_linking.py @@ -5,6 +5,7 @@ Create Date: 2022-05-22 22:51:03.804181+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/a2327cf14296_add_application_notes.py b/common/database/migrations/versions/a2327cf14296_add_application_notes.py index a743a7a2..a9e86668 100644 --- a/common/database/migrations/versions/a2327cf14296_add_application_notes.py +++ b/common/database/migrations/versions/a2327cf14296_add_application_notes.py @@ -5,6 +5,7 @@ Create Date: 2022-05-29 00:57:06.169564+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/a85d78552b07_make_participant_id_autoincrement.py b/common/database/migrations/versions/a85d78552b07_make_participant_id_autoincrement.py index d5941687..9f3217ae 100644 --- a/common/database/migrations/versions/a85d78552b07_make_participant_id_autoincrement.py +++ b/common/database/migrations/versions/a85d78552b07_make_participant_id_autoincrement.py @@ -5,6 +5,7 @@ Create Date: 2023-04-18 18:52:01.934234+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/ad76fc957eec_add_discord_linking.py b/common/database/migrations/versions/ad76fc957eec_add_discord_linking.py index e0ed3d1a..7f49137d 100644 --- a/common/database/migrations/versions/ad76fc957eec_add_discord_linking.py +++ b/common/database/migrations/versions/ad76fc957eec_add_discord_linking.py @@ -5,6 +5,7 @@ Create Date: 2022-05-18 04:03:23.907965+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/b1316c845fab_add_participant_is_admin_flag.py b/common/database/migrations/versions/b1316c845fab_add_participant_is_admin_flag.py index 10a15d5e..59227409 100644 --- a/common/database/migrations/versions/b1316c845fab_add_participant_is_admin_flag.py +++ b/common/database/migrations/versions/b1316c845fab_add_participant_is_admin_flag.py @@ -5,6 +5,7 @@ Create Date: 2023-04-18 19:23:20.664777+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/b5ac23c43648_timezone_aware_timestamps_for_.py b/common/database/migrations/versions/b5ac23c43648_timezone_aware_timestamps_for_.py index 444749dd..a257161f 100644 --- a/common/database/migrations/versions/b5ac23c43648_timezone_aware_timestamps_for_.py +++ b/common/database/migrations/versions/b5ac23c43648_timezone_aware_timestamps_for_.py @@ -5,6 +5,7 @@ Create Date: 2022-05-07 21:28:10.677535+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/bac759e7498c_add_participant_role.py b/common/database/migrations/versions/bac759e7498c_add_participant_role.py index 7beb4fc8..009974db 100644 --- a/common/database/migrations/versions/bac759e7498c_add_participant_role.py +++ b/common/database/migrations/versions/bac759e7498c_add_participant_role.py @@ -5,6 +5,7 @@ Create Date: 2023-04-18 04:22:38.801857+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/c1b1ed99e50d_add_sending_message_status.py b/common/database/migrations/versions/c1b1ed99e50d_add_sending_message_status.py index 3c9c4466..618918bd 100644 --- a/common/database/migrations/versions/c1b1ed99e50d_add_sending_message_status.py +++ b/common/database/migrations/versions/c1b1ed99e50d_add_sending_message_status.py @@ -5,6 +5,7 @@ Create Date: 2022-06-06 06:47:20.137754+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/c2d6f3f46dfa_add_application_status.py b/common/database/migrations/versions/c2d6f3f46dfa_add_application_status.py index 742e8a23..647dd184 100644 --- a/common/database/migrations/versions/c2d6f3f46dfa_add_application_status.py +++ b/common/database/migrations/versions/c2d6f3f46dfa_add_application_status.py @@ -5,6 +5,7 @@ Create Date: 2022-04-19 05:19:10.554700+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/c7416886f30d_add_countries.py b/common/database/migrations/versions/c7416886f30d_add_countries.py index 39078933..48a097c0 100644 --- a/common/database/migrations/versions/c7416886f30d_add_countries.py +++ b/common/database/migrations/versions/c7416886f30d_add_countries.py @@ -5,6 +5,7 @@ Create Date: 2022-02-12 07:51:13.003045+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/c94b4d9f880f_add_event_attendance.py b/common/database/migrations/versions/c94b4d9f880f_add_event_attendance.py index c54e7a67..a6d6214c 100644 --- a/common/database/migrations/versions/c94b4d9f880f_add_event_attendance.py +++ b/common/database/migrations/versions/c94b4d9f880f_add_event_attendance.py @@ -5,6 +5,7 @@ Create Date: 2022-06-01 16:49:56.846684+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/cedc0da31c8f_add_settings.py b/common/database/migrations/versions/cedc0da31c8f_add_settings.py index c2d21f5b..6ee5ff48 100644 --- a/common/database/migrations/versions/cedc0da31c8f_add_settings.py +++ b/common/database/migrations/versions/cedc0da31c8f_add_settings.py @@ -5,6 +5,7 @@ Create Date: 2022-06-19 19:31:01.151952+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/d2388da5bbfd_add_messages.py b/common/database/migrations/versions/d2388da5bbfd_add_messages.py index f2dc89fa..3525aef8 100644 --- a/common/database/migrations/versions/d2388da5bbfd_add_messages.py +++ b/common/database/migrations/versions/d2388da5bbfd_add_messages.py @@ -5,6 +5,7 @@ Create Date: 2022-05-04 21:49:29.234380+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/d32dcfa45423_remove_participant_id_sequence.py b/common/database/migrations/versions/d32dcfa45423_remove_participant_id_sequence.py index 59a9b798..ed792096 100644 --- a/common/database/migrations/versions/d32dcfa45423_remove_participant_id_sequence.py +++ b/common/database/migrations/versions/d32dcfa45423_remove_participant_id_sequence.py @@ -5,6 +5,7 @@ Create Date: 2022-04-04 17:59:37.231522+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/eb8fe5a0a086_add_automated_message_triggers.py b/common/database/migrations/versions/eb8fe5a0a086_add_automated_message_triggers.py index 0efc3cc1..d400262b 100644 --- a/common/database/migrations/versions/eb8fe5a0a086_add_automated_message_triggers.py +++ b/common/database/migrations/versions/eb8fe5a0a086_add_automated_message_triggers.py @@ -5,6 +5,7 @@ Create Date: 2022-05-08 06:15:42.355873+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/ed2fee02e591_add_project_code_to_participants_table.py b/common/database/migrations/versions/ed2fee02e591_add_project_code_to_participants_table.py index ca3c347f..773650e3 100644 --- a/common/database/migrations/versions/ed2fee02e591_add_project_code_to_participants_table.py +++ b/common/database/migrations/versions/ed2fee02e591_add_project_code_to_participants_table.py @@ -5,6 +5,7 @@ Create Date: 2023-06-24 15:56:25.393662+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/ef1249d3aa86_add_webhooks_table.py b/common/database/migrations/versions/ef1249d3aa86_add_webhooks_table.py index bf22dcde..65a007b8 100644 --- a/common/database/migrations/versions/ef1249d3aa86_add_webhooks_table.py +++ b/common/database/migrations/versions/ef1249d3aa86_add_webhooks_table.py @@ -5,6 +5,7 @@ Create Date: 2023-05-18 22:48:20.157007+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/f31d5d917595_require_gender_and_race_ethnicity.py b/common/database/migrations/versions/f31d5d917595_require_gender_and_race_ethnicity.py index bbd821ba..ae799e6e 100644 --- a/common/database/migrations/versions/f31d5d917595_require_gender_and_race_ethnicity.py +++ b/common/database/migrations/versions/f31d5d917595_require_gender_and_race_ethnicity.py @@ -5,6 +5,7 @@ Create Date: 2022-04-18 06:33:04.850673+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/f33cced0cb75_add_is_html_to_messages.py b/common/database/migrations/versions/f33cced0cb75_add_is_html_to_messages.py index 952f1cbe..de6dba06 100644 --- a/common/database/migrations/versions/f33cced0cb75_add_is_html_to_messages.py +++ b/common/database/migrations/versions/f33cced0cb75_add_is_html_to_messages.py @@ -5,6 +5,7 @@ Create Date: 2022-05-14 09:57:51.328368+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/migrations/versions/fcdb492ecec9_add_tracks_attendance_to_events_table.py b/common/database/migrations/versions/fcdb492ecec9_add_tracks_attendance_to_events_table.py index e103fc60..8bc568ad 100644 --- a/common/database/migrations/versions/fcdb492ecec9_add_tracks_attendance_to_events_table.py +++ b/common/database/migrations/versions/fcdb492ecec9_add_tracks_attendance_to_events_table.py @@ -5,6 +5,7 @@ Create Date: 2023-06-23 20:31:27.668627+00:00 """ + import sqlalchemy as sa import sqlmodel from alembic import op diff --git a/common/database/tables/settings.py b/common/database/tables/settings.py index 8ea4e4f5..d77a5290 100644 --- a/common/database/tables/settings.py +++ b/common/database/tables/settings.py @@ -27,13 +27,11 @@ class Key(Enum): class Formatter(ABC, Generic[U]): @staticmethod @abstractmethod - def encode(value: U) -> str: - ... + def encode(value: U) -> str: ... @staticmethod @abstractmethod - def decode(raw: str) -> U: - ... + def decode(raw: str) -> U: ... class JSONFormatter(Formatter[Any]):