Skip to content

Removed redundant room types in FacilityCapacity #3528

Removed redundant room types in FacilityCapacity

Removed redundant room types in FacilityCapacity #3528

Triggered via pull request September 23, 2024 04:52
Status Failure
Total duration 24s
Artifacts

linter.yml

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

Annotations

10 errors
Ruff (ARG002): care/facility/api/serializers/facility_capacity.py#L42
care/facility/api/serializers/facility_capacity.py:42:32: ARG002 Unused method argument: `args`
Ruff (ARG002): care/facility/api/serializers/facility_capacity.py#L42
care/facility/api/serializers/facility_capacity.py:42:40: ARG002 Unused method argument: `kwargs`
Ruff (RUF005): care/facility/api/serializers/facility_capacity.py#L47
care/facility/api/serializers/facility_capacity.py:47:19: RUF005 Consider `(*TIMESTAMP_FIELDS, "facility")` instead of concatenation
Ruff (RUF012): care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py#L9
care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py:9:20: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Ruff (N805): care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py#L13
care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py:13:27: N805 First argument of a method should be named `self`
Ruff (ARG002): care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py#L13
care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py:13:33: ARG002 Unused method argument: `schema_editor`
Ruff (RUF012): care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py#L62
care/facility/migrations/0464_alter_facilitycapacity_room_type_and_more.py:62:18: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Ruff (ERA001): care/facility/models/facility.py#L93
care/facility/models/facility.py:93:5: ERA001 Found commented-out code
Ruff (ERA001): care/facility/models/facility.py#L98
care/facility/models/facility.py:98:5: ERA001 Found commented-out code
Ruff (ERA001): care/facility/models/facility.py#L101
care/facility/models/facility.py:101:5: ERA001 Found commented-out code