This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airavata-portals.git


The following commit(s) were added to refs/heads/main by this push:
     new 4262a4872 add pyright type-checking + linting to django portal code
4262a4872 is described below

commit 4262a48727a627e553f25d266922e4118bb3e9aa
Author: yasithdev <[email protected]>
AuthorDate: Wed Jul 30 11:11:58 2025 -0500

    add pyright type-checking + linting to django portal code
---
 .../django_airavata/middleware.py                  |  1 +
 pyrightconfig.json                                 | 25 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/airavata-django-portal/django_airavata/middleware.py 
b/airavata-django-portal/django_airavata/middleware.py
index a20460f97..8c18c81d7 100644
--- a/airavata-django-portal/django_airavata/middleware.py
+++ b/airavata-django-portal/django_airavata/middleware.py
@@ -1,6 +1,7 @@
 import logging
 
 import thrift
+import thrift.transport.TTransport
 from django.shortcuts import render
 
 from . import utils
diff --git a/pyrightconfig.json b/pyrightconfig.json
new file mode 100644
index 000000000..686ae37c1
--- /dev/null
+++ b/pyrightconfig.json
@@ -0,0 +1,25 @@
+{
+  "include": [
+    "airavata-django-portal/django_airavata",
+    "airavata-django-portal/tests",
+  ],
+  "extraPaths": [
+    "airavata-django-portal-commons",
+    "airavata-django-portal-sdk"
+  ],
+  "exclude": [
+    "**/node_modules",
+    "**/__pycache__",
+    "**/.*",
+    "build",
+    "dist",
+    "*.egg-info"
+  ],
+  "ignore": [
+    "**/migrations"
+  ],
+  "reportMissingImports": "warning",
+  "reportMissingTypeStubs": false,
+  "pythonVersion": "3.10",
+  "typeCheckingMode": "basic"
+}

Reply via email to