From 4d7822e07f711baaec76b18092f1ad4f6e467a4f Mon Sep 17 00:00:00 2001 From: Samuel T Date: Sat, 23 Mar 2024 15:01:40 -0400 Subject: [PATCH] Pylance config (#61) --- canopeum_backend/pyproject.toml | 8 -------- pyrightconfig.json | 9 +++++++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 pyrightconfig.json diff --git a/canopeum_backend/pyproject.toml b/canopeum_backend/pyproject.toml index 666928fe3..9109015ff 100644 --- a/canopeum_backend/pyproject.toml +++ b/canopeum_backend/pyproject.toml @@ -94,14 +94,6 @@ max-args = 7 # At least same as max-complexity max-branches = 15 -# https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file -[tool.pyright] -pythonVersion = "3.12" -exclude = [".venv/"] -typeCheckingMode = "standard" -# django-specific mypy plugin does a better job getting serializers data type of dict vs list -reportAttributeAccessIssue = "none" - # https://mypy.readthedocs.io/en/stable/config_file.html [tool.mypy] show_column_numbers = true diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 000000000..6e8f96d8b --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,9 @@ +// Must be set at root for pylance to pickup. Can't be in cannopeum_backend/pyproject.toml. bleh +// https://github.com/microsoft/pyright/blob/main/docs/configuration.md#sample-pyprojecttoml-file +{ + "pythonVersion": "3.12", + "include": ["canopeum_backend/"], + "typeCheckingMode" : "standard", + // django-specific mypy plugin does a better job getting serializers data type of dict vs list + "reportAttributeAccessIssue" : "none", +}