Fix all linting issues in care #3557
Annotations
10 errors
Ruff check:
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 check:
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 check:
care/facility/api/serializers/asset.py#L162
care/facility/api/serializers/asset.py:162:28: RUF005 Consider iterable unpacking instead of concatenation
|
Ruff check:
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 check:
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 check:
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 check:
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 check:
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 check:
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 check:
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
|
Loading