Skip to content

Commit

Permalink
chore: adds additional files to clean target (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein authored Mar 12, 2024
1 parent 7fe88a2 commit d4b68d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 6 additions & 2 deletions examples/connect/fastapi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
Expand Down

0 comments on commit d4b68d8

Please sign in to comment.