Skip to content

disable aspect ratio validation for images #3541

disable aspect ratio validation for images

disable aspect ratio validation for images #3541

Triggered via pull request September 23, 2024 07:58
Status Failure
Total duration 25s
Artifacts

linter.yml

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

Annotations

10 errors
Ruff (RET503): care/utils/models/validators.py#L45
care/utils/models/validators.py:45:9: RET503 Missing explicit `return` at the end of function able to return non-`None` value
Ruff (RUF012): care/utils/models/validators.py#L91
care/utils/models/validators.py:91:17: RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
Ruff (EM101): care/utils/models/validators.py#L101
care/utils/models/validators.py:101:30: EM101 Exception must not use a string literal, assign to variable first
Ruff (A001): care/utils/models/validators.py#L107
care/utils/models/validators.py:107:58: A001 Variable `type` is shadowing a Python builtin
Ruff (FBT001): care/utils/models/validators.py#L130
care/utils/models/validators.py:130:9: FBT001 Boolean-typed positional argument in function definition
Ruff (EM101): care/utils/models/validators.py#L143
care/utils/models/validators.py:143:17: EM101 Exception must not use a string literal, assign to variable first
Ruff (EM102): care/utils/models/validators.py#L151
care/utils/models/validators.py:151:21: EM102 Exception must not use an f-string literal, assign to variable first
Ruff (EM101): care/utils/models/validators.py#L158
care/utils/models/validators.py:158:39: EM101 Exception must not use a string literal, assign to variable first
Ruff (EM101): care/utils/models/validators.py#L160
care/utils/models/validators.py:160:39: EM101 Exception must not use a string literal, assign to variable first
Ruff (EM102): care/utils/models/validators.py#L164
care/utils/models/validators.py:164:21: EM102 Exception must not use an f-string literal, assign to variable first