Skip to content

Commit

Permalink
ban relative imports from parent modules
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Jun 19, 2023
1 parent e4641dc commit 2125e00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/controllers/promoter/test_promoter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/data_access/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2125e00

Please sign in to comment.