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 ⧉", | 5 |
ALN043: You can only import things from a Component public module, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", |
7 |
| ALN027: This class checks that no protected attribute access is used. | 3 |
| 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. | 54 |
Listing of files of the most critical ALN**¶
ALN069 occurs 5 times¶
| File:line | Content |
|---|---|
| components/medical_profile/internal/business_logic/medical_profile_logic.py:15 ⧉ | from components.clinic.internal.models.medical_admin import MedicalAdmin # noqa: ALN069 |
| components/medical_profile/internal/business_logic/tests/test_data_privacy.py:6 ⧉ | from components.fr.internal.models.archived_entity import ( # noqa: ALN069 |
| components/medical_profile/internal/business_logic/tests/test_data_privacy.py:9 ⧉ | from components.fr.internal.models.privacy_properties import ( # noqa: ALN069 |
| components/medical_profile/internal/business_logic/tests/test_data_privacy.py:70 ⧉ | from components.fr.internal.models.user import User # noqa: ALN069 |
| components/medical_profile/internal/models/medical_profile_observation.py:6 ⧉ | from components.clinic.internal.models.medical_admin import MedicalAdmin # noqa: ALN069 |
ALN043 occurs 7 times¶
| File:line | Content |
|---|---|
| components/medical_profile/internal/entities/medical_observation.py:7 ⧉ | from components.clinic.internal.entities.medical_admin import ( # noqa: ALN043 |
| components/medical_profile/internal/controllers/medical_profile.py:234 ⧉ | from components.clinic.internal.business_logic.medical_admin import ( # noqa: ALN043 |
| components/medical_profile/internal/business_logic/medical_profile_logic.py:9 ⧉ | from components.clinic.internal.entities.medical_admin import ( # noqa: ALN043 |
| components/medical_profile/internal/business_logic/medical_profile_logic.py:12 ⧉ | from components.clinic.internal.enums.medical_admin_specialty import ( # noqa: ALN043 |
| components/medical_profile/internal/business_logic/tests/test_data_privacy.py:3 ⧉ | from components.fr.internal.business_logic.helpers.create_archived_entity import ( # noqa: ALN043 |
| components/medical_profile/internal/business_logic/tests/test_data_privacy.py:12 ⧉ | from components.fr.internal.tests.factories.user import ( # noqa: ALN043 |
| components/medical_profile/internal/business_logic/tests/test_observations.py:3 ⧉ | from components.clinic.internal.tests.factories.medical_admin import ( # noqa: ALN043 |