Skip to content

Code quality

ALN** occurrences by order of importance

NOQA Number of occurrences
ALN069: You can't import models from other components, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", 25
ALN043: You can only import things from a Component public module, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", 5
ALN085: Enforces SQLAlchemy 2.0 query style by detecting deprecated patterns that will be removed in SQLAlchemy 2.0. This linter checks for: 1. Usage of session.query() which is deprecated in favor of session.scalar(), session.scalars(), or session.execute() Note: Other SQLAlchemy 2.0 deprecation warnings are already being turned into errors at runtime by the _turn_sql_alchemy_warning_into_errors function in backend/shared/models/orm/sqlalchemy.py. 26

Listing of files of the most critical ALN**

ALN069 occurs 25 times

File:line Content
components/alan_pay/internal/business_logic/actions/account_holder.py:5 ⧉ from components.payment_gateway.subcomponents.accounts.models.account_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/account_holder.py:8 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/account.py:11 ⧉ from components.payment_gateway.subcomponents.accounts.models.account import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/account.py:14 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/account.py:17 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/bank_transfer.py:43 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/bank_transfer.py:46 ⧉ from components.payment_gateway.subcomponents.transfers.models.bank_transfer import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/bank_transfer.py:50 ⧉ from components.payment_gateway.subcomponents.transfers.models.transfer_event import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card_holder.py:5 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card_holder.py:8 ⧉ from components.payment_gateway.subcomponents.cards.models.card_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card.py:27 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card.py:30 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card.py:33 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card.py:36 ⧉ from components.payment_gateway.subcomponents.cards.models.card import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card_payment.py:29 ⧉ from components.payment_gateway.subcomponents.accounts.models.brokers.account import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card_payment.py:32 ⧉ from components.payment_gateway.subcomponents.transfers.models.card_transfer import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/card_payment.py:36 ⧉ from components.payment_gateway.subcomponents.transfers.models.transfer_event import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/tests/test_push_notifications.py:42 ⧉ from components.payment_gateway.subcomponents.cards.models.tests.factories import ( # noqa: ALN069
components/alan_pay/internal/business_logic/actions/tests/test_bank_transfer.py:52 ⧉ from components.payment_gateway.subcomponents.transfers.models.tests.factories import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/card.py:5 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/card.py:8 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card_holder import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/card.py:11 ⧉ from components.payment_gateway.subcomponents.cards.models.card import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/tests/test_alan_pay_profile.py:28 ⧉ from components.payment_gateway.subcomponents.banking_documents.models.tests.factories import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/tests/test_alan_pay_profile.py:31 ⧉ from components.payment_gateway.subcomponents.cards.models.brokers.card import ( # noqa: ALN069
components/alan_pay/internal/business_logic/queries/tests/test_alan_pay_profile.py:34 ⧉ from components.payment_gateway.subcomponents.cards.models.tests.factories import ( # noqa: ALN069

ALN043 occurs 5 times

File:line Content
components/alan_pay/internal/business_logic/push_notifications/send_post_payment_push_notification.py:17 ⧉ from components.fr.internal.helpers.templating import ( # noqa: ALN043 # - To be fixed in a following PR
components/alan_pay/internal/business_logic/push_notifications/send_recovery_session_push_notification.py:17 ⧉ from components.fr.internal.helpers.templating import ( # noqa: ALN043
components/alan_pay/internal/business_logic/push_notifications/push_notification_senders.py:5 ⧉ from components.fr.internal.business_logic.push_notification_token import ( # noqa: ALN043
components/alan_pay/internal/business_logic/push_notifications/push_notification_senders.py:8 ⧉ from components.fr.internal.push_notifications.push_notification_sender import ( # noqa: ALN043 # to fix later
components/alan_pay/internal/models/alan_payment_card_balance_transaction.py:27 ⧉ from components.fr.internal.helpers.templating import ( # noqa: ALN043 # - To be fixed in a following PR