Skip to content

Don't compute confidence if the LLM does not return logprobs in the r… #23

Don't compute confidence if the LLM does not return logprobs in the r…

Don't compute confidence if the LLM does not return logprobs in the r… #23

Triggered via push December 12, 2024 01:47
Status Failure
Total duration 17s
Artifacts

ruff.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (F401): src/autolabel/confidence.py#L22
src/autolabel/confidence.py:22:30: F401 `autolabel.schema.ConfidenceCacheEntry` imported but unused
Ruff (RUF013): src/autolabel/confidence.py#L33
src/autolabel/confidence.py:33:19: RUF013 PEP 484 prohibits implicit `Optional`
Ruff (FA100): src/autolabel/confidence.py#L34
src/autolabel/confidence.py:34:14: FA100 Add `from __future__ import annotations` to simplify `typing.Optional`
Ruff (FA100): src/autolabel/confidence.py#L35
src/autolabel/confidence.py:35:16: FA100 Add `from __future__ import annotations` to simplify `typing.Optional`
Ruff (ANN003): src/autolabel/confidence.py#L57
src/autolabel/confidence.py:57:9: ANN003 Missing type annotation for `**kwargs`
Ruff (ARG002): src/autolabel/confidence.py#L57
src/autolabel/confidence.py:57:11: ARG002 Unused method argument: `kwargs`
Ruff (D404): src/autolabel/confidence.py#L59
src/autolabel/confidence.py:59:9: D404 First word of the docstring should not be "This"
Ruff (RUF015): src/autolabel/confidence.py#L67
src/autolabel/confidence.py:67:25: RUF015 Prefer `next(iter(token.keys()))` over single element slice
Ruff (ANN003): src/autolabel/confidence.py#L85
src/autolabel/confidence.py:85:9: ANN003 Missing type annotation for `**kwargs`
Ruff (ARG002): src/autolabel/confidence.py#L85
src/autolabel/confidence.py:85:11: ARG002 Unused method argument: `kwargs`