mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-07-18 09:55:02 +00:00
remove import check for django in setup (#27)
unneeded now since the agent imports and sets up Django as part of it's initial serving
This commit is contained in:
parent
9bbc2c2c3a
commit
b13d19a4bf
10 changed files with 21 additions and 104 deletions
|
@ -91,20 +91,6 @@ async def check__health(_request: check_pb2.HealthRequest) -> check_pb2.HealthRe
|
|||
return check_pb2.HealthResponse(passed=True)
|
||||
|
||||
|
||||
@proto_handler(
|
||||
check_pb2.DjangoAvailableRequest,
|
||||
error=messages_pb2.Error(
|
||||
code=messages_pb2.Error.DJANGO_ERROR, message="Django is not installed"
|
||||
),
|
||||
)
|
||||
async def check__django_available(
|
||||
_request: check_pb2.DjangoAvailableRequest,
|
||||
) -> check_pb2.DjangoAvailableResponse:
|
||||
import django # noqa: F401
|
||||
|
||||
return check_pb2.DjangoAvailableResponse(passed=True)
|
||||
|
||||
|
||||
@proto_handler(
|
||||
check_pb2.AppInstalledRequest,
|
||||
error=messages_pb2.Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue