Fix all linting issues in care #3562
Annotations
10 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 (RET504):
care/facility/api/serializers/asset.py#L130
care/facility/api/serializers/asset.py:130:16: RET504 Unnecessary assignment to `updated_instance` before `return` statement
|
Ruff (RUF005):
care/facility/api/serializers/asset.py#L162
care/facility/api/serializers/asset.py:162:28: RUF005 Consider iterable unpacking instead of concatenation
|
Ruff (DTZ005):
care/facility/api/serializers/asset.py#L198
care/facility/api/serializers/asset.py:198:49: DTZ005 `datetime.datetime.now()` called without a `tz` argument
|
Ruff (EM101):
care/facility/api/serializers/asset.py#L200
care/facility/api/serializers/asset.py:200:21: EM101 Exception must not use a string literal, assign to variable first
|
Ruff (SIM102):
care/facility/api/serializers/asset.py#L204
care/facility/api/serializers/asset.py:204:9: SIM102 Use a single `if` statement instead of nested `if` statements
|
Ruff (DTZ005):
care/facility/api/serializers/asset.py#L205
care/facility/api/serializers/asset.py:205:44: DTZ005 `datetime.datetime.now()` called without a `tz` argument
|
Ruff (EM101):
care/facility/api/serializers/asset.py#L206
care/facility/api/serializers/asset.py:206:39: EM101 Exception must not use a string literal, assign to variable first
|
Ruff (EM102):
care/facility/api/serializers/asset.py#L254
care/facility/api/serializers/asset.py:254:25: EM102 Exception must not use an f-string literal, assign to variable first
|
Ruff (PLR2004):
care/facility/api/serializers/asset.py#L364
care/facility/api/serializers/asset.py:364:31: PLR2004 Magic value used in comparison, consider replacing `3` with a constant variable
|