Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
🐛 fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
gazorby committed Jan 13, 2023
1 parent 4cc8868 commit 021ad79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/starlite_saqlalchemy/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
from starlite_saqlalchemy.repository.sqlalchemy import ModelT

if settings.IS_SAQ_INSTALLED:
from starlite_saqlalchemy.worker import default_job_config_dict, queue # isort:skip
from saq.job import Job

from starlite_saqlalchemy.worker import default_job_config_dict, queue


if TYPE_CHECKING:
from collections.abc import AsyncIterator
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# pylint: disable=import-outside-toplevel

"""Unit test specific config."""
from __future__ import annotations

Expand Down Expand Up @@ -32,6 +34,7 @@ def job() -> Job:
"""SAQ Job instance."""
if settings.IS_SAQ_INSTALLED is False:
pytest.skip("SAQ not available")

from saq.job import Job

return Job(function="whatever", kwargs={"a": "b"})
Expand Down

0 comments on commit 021ad79

Please sign in to comment.