From 06bafad43e09c50220e3f1109b061782159db175 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:12:30 +0530 Subject: [PATCH 01/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 + Makefile | 3 +++ requirements.txt | 1 + 3 files changed, 5 insertions(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 9fdcf4c75..80cee45a3 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,6 +32,7 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade + make pystub make install test-install make prettier diff --git a/Makefile b/Makefile index 72cabbcfb..7f841be62 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,9 @@ clean: nopyc: find . -name \*.pyc -delete +pystub: + . venv/bin/activate; pyright --createstub . + prettier: . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . diff --git a/requirements.txt b/requirements.txt index a29abc4d1..b68ef5432 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,3 +4,4 @@ PyJWT>=2.0.0, <3.0.0 aiohttp>=3.9.4 aiohttp-retry>=2.8.3 certifi>=2023.7.22 # not directly required, pinned by Snyk to avoid a vulnerability +pyright>=1.1.364 From cd20dd17da23347346d10210460f141587e02387 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:18:35 +0530 Subject: [PATCH 02/15] chore: add pystub --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7f841be62..50da7d612 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,9 @@ clean: nopyc: find . -name \*.pyc -delete -pystub: - . venv/bin/activate; pyright --createstub . prettier: + . venv/bin/activate; pyright --createstub . . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . From d79d95c943de3ecbdcaf2be397c04691c20f6513 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:19:56 +0530 Subject: [PATCH 03/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 80cee45a3..9fdcf4c75 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,7 +32,6 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade - make pystub make install test-install make prettier From 395d55b995379f28d84b8beb1b5f4683bcb9065a Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:25:54 +0530 Subject: [PATCH 04/15] chore: add pystub --- tests/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/requirements.txt b/tests/requirements.txt index 679f8e13d..0a6779b82 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -12,3 +12,4 @@ multidict pyngrok black autoflake +pyright From 9995f22a500810243438a8df06f9336d1e20c744 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:28:12 +0530 Subject: [PATCH 05/15] chore: add pystub --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50da7d612..ac7cce0de 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ nopyc: prettier: - . venv/bin/activate; pyright --createstub . + pyright --createstub . . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . From 5b5672e247cfdf5c1f33f8af4be5e89e0e0a4757 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:29:53 +0530 Subject: [PATCH 06/15] chore: add pystub --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ac7cce0de..50da7d612 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ nopyc: prettier: - pyright --createstub . + . venv/bin/activate; pyright --createstub . . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . From e1073782c3594b3bee67db5e0998faf3b439ccf4 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 16:32:09 +0530 Subject: [PATCH 07/15] chore: add pystub --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 50da7d612..8594c31db 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,8 @@ nopyc: prettier: - . venv/bin/activate; pyright --createstub . + pwd + . venv/bin/activate; pyright --createstub twilio/rest . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . From 7e8cd2b0ad21fcf3f128bd0cbf5f223a04642d93 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 17:45:05 +0530 Subject: [PATCH 08/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 9fdcf4c75..80cee45a3 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,6 +32,7 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade + make pystub make install test-install make prettier diff --git a/Makefile b/Makefile index 8594c31db..c790d0e68 100644 --- a/Makefile +++ b/Makefile @@ -56,10 +56,10 @@ clean: nopyc: find . -name \*.pyc -delete +pystub: + . venv/bin/activate; pyright --createstub twilio/rest prettier: - pwd - . venv/bin/activate; pyright --createstub twilio/rest . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . . venv/bin/activate; black . From 7decec0c0662ad5a5757bf63dd063d18cae04c22 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 17:47:09 +0530 Subject: [PATCH 09/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 80cee45a3..8a3b770fa 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,6 +32,7 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade + pwd make pystub make install test-install make prettier From d94e60084d1290589ffa9dc0919384ac185ecd6d Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Mon, 27 May 2024 18:10:27 +0530 Subject: [PATCH 10/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 8a3b770fa..61f40bd0e 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,7 +32,7 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade - pwd + ls make pystub make install test-install make prettier From a06ed78373192c02e362fc026822c878767c129f Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 May 2024 15:18:21 +0530 Subject: [PATCH 11/15] chore: add pystub --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c790d0e68..82b87e88f 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ nopyc: find . -name \*.pyc -delete pystub: - . venv/bin/activate; pyright --createstub twilio/rest + pip install pyright; pyright --createstub twilio/rest prettier: . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . From ebf1a12582256d93c2157559adba74162f40ae5b Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 May 2024 16:12:50 +0530 Subject: [PATCH 12/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 - Makefile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 61f40bd0e..80cee45a3 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -32,7 +32,6 @@ jobs: - name: Install Dependencies run: | pip install virtualenv --upgrade - ls make pystub make install test-install make prettier diff --git a/Makefile b/Makefile index 82b87e88f..d21d29dbb 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ nopyc: find . -name \*.pyc -delete pystub: - pip install pyright; pyright --createstub twilio/rest + pip install pyright; export PWD=pwd; pyright --createstub $PWD/twilio/rest prettier: . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . From d4ceb83a59f46590e42a05b4d7c60b2cf9a7a665 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 May 2024 16:14:41 +0530 Subject: [PATCH 13/15] chore: add pystub --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d21d29dbb..a33cf55bb 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ nopyc: find . -name \*.pyc -delete pystub: - pip install pyright; export PWD=pwd; pyright --createstub $PWD/twilio/rest + pip install pyright; export PWD=pwd; pyright --createstub "$PWD/twilio/rest" prettier: . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . From f353e23631d1419e3399237a35215057d7ffe14d Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 May 2024 16:16:03 +0530 Subject: [PATCH 14/15] chore: add pystub --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a33cf55bb..94904cdfc 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ nopyc: find . -name \*.pyc -delete pystub: - pip install pyright; export PWD=pwd; pyright --createstub "$PWD/twilio/rest" + pip install pyright; export PWD=pwd; pyright --createstub "${PWD}/twilio/rest" prettier: . venv/bin/activate; autoflake --remove-all-unused-imports -i -r --exclude venv . From c5ccaee67d95367ce3e9ee25e3fddb277b2fc7a9 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 May 2024 16:34:18 +0530 Subject: [PATCH 15/15] chore: add pystub --- .github/workflows/test-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 80cee45a3..3a863f15b 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -35,6 +35,7 @@ jobs: make pystub make install test-install make prettier + tree - name: Run the tests run: make test-with-coverage