Skip to content

chore(ci): add ruff lint and format on git hook and github action #1

chore(ci): add ruff lint and format on git hook and github action

chore(ci): add ruff lint and format on git hook and github action #1

Triggered via pull request January 6, 2025 07:16
Status Failure
Total duration 15s
Artifacts

backend-test.yml

on: pull_request
Backend Test
6s
Backend Test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Ruff (F401): backend/app/alembic/versions/04d4f05116ed_.py#L12
backend/app/alembic/versions/04d4f05116ed_.py:12:36: F401 `tidb_vector.sqlalchemy.VectorType` imported but unused
Ruff (F401): backend/app/alembic/versions/10f36e8a25c4_.py#L10
backend/app/alembic/versions/10f36e8a25c4_.py:10:22: F401 `sqlalchemy` imported but unused
Ruff (F401): backend/app/alembic/versions/10f36e8a25c4_.py#L11
backend/app/alembic/versions/10f36e8a25c4_.py:11:8: F401 `sqlmodel.sql.sqltypes` imported but unused
Ruff (F401): backend/app/alembic/versions/10f36e8a25c4_.py#L12
backend/app/alembic/versions/10f36e8a25c4_.py:12:36: F401 `tidb_vector.sqlalchemy.VectorType` imported but unused
Ruff (F401): backend/app/alembic/versions/197bc8be72d1_.py#L11
backend/app/alembic/versions/197bc8be72d1_.py:11:8: F401 `sqlmodel.sql.sqltypes` imported but unused
Ruff (F401): backend/app/alembic/versions/197bc8be72d1_.py#L12
backend/app/alembic/versions/197bc8be72d1_.py:12:36: F401 `tidb_vector.sqlalchemy.VectorType` imported but unused
Ruff (F401): backend/app/alembic/versions/27a6723b767a_.py#L11
backend/app/alembic/versions/27a6723b767a_.py:11:8: F401 `sqlmodel.sql.sqltypes` imported but unused
Ruff (F401): backend/app/alembic/versions/27a6723b767a_.py#L12
backend/app/alembic/versions/27a6723b767a_.py:12:36: F401 `tidb_vector.sqlalchemy.VectorType` imported but unused
Ruff (F401): backend/app/alembic/versions/27a6723b767a_.py#L13
backend/app/alembic/versions/27a6723b767a_.py:13:33: F401 `sqlalchemy.dialects.mysql` imported but unused
Ruff (F401): backend/app/alembic/versions/749767db5505_add_recommend_questions.py#L11
backend/app/alembic/versions/749767db5505_add_recommend_questions.py:11:8: F401 `sqlmodel.sql.sqltypes` imported but unused
Backend Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636