From 763cca36dc60af25c765968781390219213db75d Mon Sep 17 00:00:00 2001 From: exaby73 Date: Mon, 19 Jun 2023 18:40:03 +0530 Subject: [PATCH 1/3] Run formmater --- example/functions/main.py | 3 +-- samples/basic_alerts/functions/main.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/example/functions/main.py b/example/functions/main.py index c53194d..5ac35f3 100644 --- a/example/functions/main.py +++ b/example/functions/main.py @@ -31,8 +31,7 @@ def oncallexample(req: https_fn.CallableRequest): return "Hello from https on call function example" -@pubsub_fn.on_message_published( - topic="hello",) +@pubsub_fn.on_message_published(topic="hello",) def onmessagepublishedexample( event: pubsub_fn.CloudEvent[pubsub_fn.MessagePublishedData]) -> None: print("Hello from pubsub event:", event) diff --git a/samples/basic_alerts/functions/main.py b/samples/basic_alerts/functions/main.py index 6b0912e..49aaf88 100644 --- a/samples/basic_alerts/functions/main.py +++ b/samples/basic_alerts/functions/main.py @@ -7,8 +7,8 @@ from firebase_functions.alerts import performance_fn -@alerts_fn.on_alert_published(alert_type=alerts_fn.AlertType.BILLING_PLAN_UPDATE - ) +@alerts_fn.on_alert_published( + alert_type=alerts_fn.AlertType.BILLING_PLAN_UPDATE) def onalertpublished( alert: alerts_fn.AlertEvent[alerts_fn.FirebaseAlertData[ billing_fn.PlanUpdatePayload]] From 77267ce38dfe6c3d1723613195ad8bb16a48c3dc Mon Sep 17 00:00:00 2001 From: exaby73 Date: Mon, 19 Jun 2023 18:44:21 +0530 Subject: [PATCH 2/3] Add .idea to .gitignore --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c26d6b7..3a3c72a 100644 --- a/.gitignore +++ b/.gitignore @@ -133,4 +133,8 @@ pytest-coverage.txt .DS_Store # reference docs -doc/dist \ No newline at end of file +doc/dist + +# IDE files +.idea +.vscode From 5c1e6eb14cbdd7a1e41bba9eb9e65921ab3a8d12 Mon Sep 17 00:00:00 2001 From: exaby73 Date: Mon, 19 Jun 2023 19:07:52 +0530 Subject: [PATCH 3/3] Remove python.defaultInterpreterPath from settings.json --- .vscode/settings.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3bb4192..97aef07 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,7 +8,6 @@ ], "python.linting.pylintPath": "pylint", "python.envFile": "${workspaceFolder}/venv", - "python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python3.10", "editor.formatOnSave": true, "python.linting.lintOnSave": true, "python.linting.mypyEnabled": true,