diff --git a/Makefile b/Makefile index 3b5460b2..29c38b26 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,8 @@ clean: find . -name "*.egg-info" -exec rm -rf {} + find . -name "*.pyc" -exec rm -f {} + find . -name "__pycache__" -exec rm -rf {} + - rm -rf .coverage .mypy_cache .pytest_cache .ruff_cache *.egg-info build dist htmlcov + find . -name "_version.py" -exec rm -rf {} + + rm -rf .coverage .mypy_cache .pytest_cache .ruff_cache *.egg-info build coverage.xml dist htmlcov coverage.xml # Target for generating coverage report cov: diff --git a/examples/connect/fastapi/app.py b/examples/connect/fastapi/app.py index 24a52c52..c14bd06a 100644 --- a/examples/connect/fastapi/app.py +++ b/examples/connect/fastapi/app.py @@ -20,14 +20,18 @@ @app.get("/fares") -async def get_fares(posit_connect_user_session_token: Annotated[str | None, Header()] = None) -> JSONResponse: +async def get_fares( + posit_connect_user_session_token: Annotated[str | None, Header()] = None, +) -> JSONResponse: """ FastAPI example API that returns the first few rows from a table hosted in Databricks. """ global rows - credentials_provider = viewer_credentials_provider(user_session_token=posit_connect_user_session_token) + credentials_provider = viewer_credentials_provider( + user_session_token=posit_connect_user_session_token + ) if rows is None: query = "SELECT * FROM samples.nyctaxi.trips LIMIT 10;"