mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 03:51:09 -05:00
Refactor type checking configuration; consolidate settings from pyrightconfig.json into pyproject.toml for improved project structure and clarity.
This commit is contained in:
@@ -76,10 +76,33 @@ dev = [
|
|||||||
|
|
||||||
[tool.pyright]
|
[tool.pyright]
|
||||||
stubPath = "stubs"
|
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]
|
[tool.pylance]
|
||||||
stubPath = "stubs"
|
stubPath = "stubs"
|
||||||
|
|
||||||
|
|
||||||
[tool.uv.sources]
|
[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" }
|
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" }
|
||||||
|
|||||||
@@ -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"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user