From 31a2d84f9fed59214e59cf65162fe6e631bb3dda Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Sat, 27 Sep 2025 11:48:31 -0400 Subject: [PATCH] Refactor type checking configuration; consolidate settings from pyrightconfig.json into pyproject.toml for improved project structure and clarity. --- pyproject.toml | 25 ++++++++++++++++++++++++- pyrightconfig.json | 22 ---------------------- 2 files changed, 24 insertions(+), 23 deletions(-) delete mode 100644 pyrightconfig.json diff --git a/pyproject.toml b/pyproject.toml index d103e556..66d58bee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,10 +76,33 @@ dev = [ [tool.pyright] stubPath = "stubs" -typeCheckingMode = "basic" +include = ["."] +exclude = [ + "**/node_modules", + "**/__pycache__", + "**/migrations", + "**/.venv", + "**/venv", + "**/.git", + "**/.hg", + "**/.tox", + "**/.nox", +] +typeCheckingMode = "strict" +reportIncompatibleMethodOverride = "error" +reportIncompatibleVariableOverride = "error" +reportGeneralTypeIssues = "error" +reportReturnType = "error" +reportMissingImports = "error" +reportMissingTypeStubs = "warning" +reportUndefinedVariable = "error" +reportUnusedImport = "warning" +reportUnusedVariable = "warning" +pythonVersion = "3.13" [tool.pylance] stubPath = "stubs" + [tool.uv.sources] python-json-logger = { url = "https://github.com/nhairs/python-json-logger/releases/download/v3.0.0/python_json_logger-3.0.0-py3-none-any.whl" } diff --git a/pyrightconfig.json b/pyrightconfig.json deleted file mode 100644 index 971a56fb..00000000 --- a/pyrightconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "include": [ - "." - ], - "exclude": [ - "**/node_modules", - "**/__pycache__", - "**/migrations" - ], - "stubPath": "stubs", - "typeCheckingMode": "strict", - "reportIncompatibleMethodOverride": "error", - "reportIncompatibleVariableOverride": "error", - "reportGeneralTypeIssues": "error", - "reportReturnType": "error", - "reportMissingImports": "error", - "reportMissingTypeStubs": "warning", - "reportUndefinedVariable": "error", - "reportUnusedImport": "warning", - "reportUnusedVariable": "warning", - "pythonVersion": "3.13" -}