diff --git a/inbox.graphql b/inbox.graphql index 744103a..58d5dab 100644 --- a/inbox.graphql +++ b/inbox.graphql @@ -1,7 +1,3 @@ -type _Service { - sdl: String -} - enum MessageStatus { NEW UPDATED diff --git a/pyproject.toml b/pyproject.toml index 5d31a51..108f494 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,3 @@ -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" - [tool.poetry] name = "discoursio-inbox" version = "0.2.15" @@ -18,10 +14,18 @@ uvicorn = "^0.24" itsdangerous = "^2.1.2" aiohttp = "^3.9.1" +[tool.poetry.group.dev.dependencies] +setuptools = "^69.0.2" + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" + [tool.poetry.dev-dependencies] pytest = "^7.4.2" black = { version = "^23.9.1", python = ">=3.12" } ruff = { version = "^0.1.0", python = ">=3.12" } +setuptools = "^69.0.2" [tool.black] line-length = 120 @@ -69,3 +73,26 @@ target-version = "py312" [tool.pyright] venvPath = "." venv = ".venv" +include = ["."] +useLibraryCodeForTypes = true +disableLanguageServices = false +disableOrganizeImports = false +reportMissingImports = false +reportMissingModuleSource = "warning" +reportImportCycles = "warning" +maxMemoryForLargeFile = 4096 +pythonVersion = "3.12" +autoImportCompletions = true +useVirtualEnv = true +typeCheckingMode = "basic" +disableJediCompletion = false +disableCompletion = false +disableSnippetCompletion = false +disableGoToDefinition = false +disableRenaming = false +disableSignatureHelp = false +diagnostics = true +logLevel = "Information" +pluginSearchPaths = [] +typings = {} +mergeTypeStubPackages = false diff --git a/services/schema.py b/services/schema.py index 09060ae..fa33eb3 100644 --- a/services/schema.py +++ b/services/schema.py @@ -5,12 +5,12 @@ mutation = MutationType() # duffok was here 2023-12-1 # This is a query resolver for Apollo Federation -@query.field("_service") -def resolve_service(*_): - # Load the full SDL from your SDL file - with open("inbox.graphql", "r") as file: - full_sdl = file.read() - - return {"sdl": full_sdl} +# @query.field("_service") +# def resolve_service(*_): +# # Load the full SDL from your SDL file +# with open("inbox.graphql", "r") as file: +# full_sdl = file.read() +# +# return {"sdl": full_sdl} resolvers = [query, mutation]