Skip to content

Commit

Permalink
Merge pull request #138 from airtai/dev
Browse files Browse the repository at this point in the history
Update packages (#137)
  • Loading branch information
kumaranvpl authored Oct 14, 2024
2 parents 2e7b84c + 4606b5e commit b7519ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ RUN pip install -e ".[dev]"

EXPOSE ${PORT}

ENTRYPOINT []
CMD [ "/usr/bin/bash", "-c", "./run_server.sh" ]
ENTRYPOINT [] # nosemgrep
CMD [ "/usr/bin/bash", "-c", "./run_server.sh" ] # nosemgrep
4 changes: 2 additions & 2 deletions google_sheets/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ async def login_callback(

token_request_data = get_token_request_data(code)

async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=5) as client:
response = await client.post(
oauth2_settings["tokenUrl"], data=token_request_data
)

if response.status_code == 200:
token_data = response.json()

async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=5) as client:
userinfo_response = await client.get(
"https://www.googleapis.com/oauth2/v2/userinfo",
headers={"Authorization": f"Bearer {token_data['access_token']}"},
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ dependencies = [
"pydantic>=2.3,<3",
"fastapi>=0.110.2",
"prisma==0.13.1",
"google-api-python-client==2.145.0",
"google-api-python-client==2.148.0",
"asyncify==0.10.0",
"pandas==2.2.2"
"pandas==2.2.3"
]

[project.optional-dependencies]
Expand All @@ -67,10 +67,10 @@ lint = [
"types-Pygments",
"types-docutils",
"mypy==1.11.2",
"ruff==0.6.5",
"ruff==0.6.9",
"pyupgrade-directories==0.3.0",
"bandit==1.7.9",
"semgrep==1.87.0",
"bandit==1.7.10",
"semgrep==1.90.0",
"pytest-mypy-plugins==3.1.2",
]

Expand Down

0 comments on commit b7519ae

Please sign in to comment.