Skip to content

Fix all linting issues in care #3571

Fix all linting issues in care

Fix all linting issues in care #3571

Triggered via pull request September 24, 2024 14:19
Status Failure
Total duration 25s
Artifacts

linter.yml

on: pull_request
Lint Code Base
14s
Lint Code Base
Fit to window
Zoom out
Zoom in

Annotations

7 errors
Ruff (INP001): care/abdm/api/serializers/abha_number.py#L1
care/abdm/api/serializers/abha_number.py:1:1: INP001 File `care/abdm/api/serializers/abha_number.py` is part of an implicit namespace package. Add an `__init__.py`.
Ruff (PLR0912): care/facility/api/serializers/patient_consultation.py#L305
care/facility/api/serializers/patient_consultation.py:305:9: PLR0912 Too many branches (21 > 12)
Ruff (S603): care/facility/tests/test_pdf_generation.py#L53
care/facility/tests/test_pdf_generation.py:53:9: S603 `subprocess` call: check for execution of untrusted input
Ruff (RUF100): care/facility/tests/test_pdf_generation.py#L54
care/facility/tests/test_pdf_generation.py:54:88: RUF100 Unused `noqa` directive (unused: `S603`)
Ruff (S603): care/facility/utils/reports/discharge_summary.py#L215
care/facility/utils/reports/discharge_summary.py:215:9: S603 `subprocess` call: check for execution of untrusted input
Ruff (RUF100): care/facility/utils/reports/discharge_summary.py#L216
care/facility/utils/reports/discharge_summary.py:216:16: RUF100 Unused `noqa` directive (unused: `S603`)
Lint Code Base
Process completed with exit code 1.