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 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, 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]]