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 ⧉", 2
ALN043: You can only import things from a Component public module, see: https://www.notion.so/alaninsurance/Modular-monolith-a9d84f1318d34115bbd08b3648e5a587 ⧉", 4
ALN059: Checks that all component dependencies are declared in the root of a component 1
ALN077: Check for usage of backref in SQLAlchemy relationships and suggest using back_populates instead. 8
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. 91

Listing of files of the most critical ALN**

ALN069 occurs 2 times

File:line Content
components/occupational_health/external/employment_component.py:17 ⧉ from components.fr.internal.models.employment import ( # noqa: ALN069
components/occupational_health/external/employment_component.py:48 ⧉ from components.fr.internal.models.employment import ( # noqa: ALN069

ALN043 occurs 4 times

File:line Content
components/occupational_health/external/employment_component.py:45 ⧉ from components.fr.internal.fr_employment_data_sources.business_logic.global_affiliation_transition.backfill import ( # noqa: ALN043
components/occupational_health/internal/conftest.py:27 ⧉ from components.affiliation_occ_health.bootstrap.bootstrap import ( # noqa: ALN043 # can't really import this otherwise
components/occupational_health/internal/conftest.py:30 ⧉ from components.employment.bootstrap.bootstrap import ( # noqa: ALN043 # can't really import this otherwise
components/occupational_health/internal/conftest.py:33 ⧉ from components.global_profile.bootstrap.bootstrap import ( # noqa: ALN043 # can't really import this otherwise