diff --git a/backend/pyproject.toml b/backend/pyproject.toml index b32d2412..b41d3f68 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -34,7 +34,7 @@ metadata = "true" tagged-metadata = "true" [tool.ruff] -select = ["E", "F", "B", "N", "UP", "ANN", "C4", "T20", "SIM", "ARG", "ERA", "PLE"] +select = ["E", "F", "B", "N", "UP", "ANN", "C4", "T20", "SIM", "ARG", "ERA", "PLE", "TID252"] ignore = ["ANN201", "ANN003", "N999", "ANN101", "ANN204"] [tool.ruff.flake8-bugbear] diff --git a/backend/tests/controllers/promoter/test_promoter.py b/backend/tests/controllers/promoter/test_promoter.py index c9586c84..bb90c175 100644 --- a/backend/tests/controllers/promoter/test_promoter.py +++ b/backend/tests/controllers/promoter/test_promoter.py @@ -26,7 +26,7 @@ from requests_mock import Mocker from sqlalchemy.orm import Session -from ...helpers import create_artefact, create_artefact_builds +from tests.helpers import create_artefact, create_artefact_builds def test_run_to_move_artefact_snap( diff --git a/backend/tests/data_access/test_repository.py b/backend/tests/data_access/test_repository.py index 5263e082..a6c4eff2 100644 --- a/backend/tests/data_access/test_repository.py +++ b/backend/tests/data_access/test_repository.py @@ -31,7 +31,7 @@ get_stage_by_name, ) -from ..helpers import create_artefact +from tests.helpers import create_artefact def test_get_stage_by_name(db_session: Session):