Skip to content

Commit 977c865

Browse files
committed
docs: fix typos from review
1 parent 0f9dba0 commit 977c865

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

packages/divbase-api/src/divbase_api/crud/s3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def get_s3_file_manager() -> S3FileManager:
12-
"""Dependency to get an S3FileManager instance. Dependancy injected into FastAPI endpoints."""
12+
"""Dependency to get an S3FileManager instance. Dependency injected into FastAPI endpoints."""
1313
return S3FileManager(
1414
url=api_settings.s3.endpoint_url,
1515
access_key=api_settings.s3.access_key.get_secret_value(),
@@ -18,7 +18,7 @@ def get_s3_file_manager() -> S3FileManager:
1818

1919

2020
def get_pre_signed_service() -> S3PreSignedService:
21-
"""Dependency to get pre-signed S3 service. Dependancy injected into FastAPI endpoints."""
21+
"""Dependency to get pre-signed S3 service. Dependency injected into FastAPI endpoints."""
2222
return S3PreSignedService()
2323

2424

packages/divbase-api/src/divbase_api/deps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- get_current_user_from_cookie for frontend based routes.
1111
1212
The dependencies that depend on this can use e.g. get_current_user as a sub-dependency,
13-
so all checks in the sub-dependancy function are ran when you use this dependency.
13+
so all checks in the sub-dependency function are ran when you use this dependency.
1414
(see here: https://fastapi.tiangolo.com/yo/advanced/security/oauth2-scopes/#dependency-tree-and-scopes)
1515
"""
1616

@@ -157,7 +157,7 @@ async def get_current_admin_user(current_user: Annotated[UserDB, Depends(get_cur
157157
Verify current user has admin access.
158158
159159
Note: This function works by using a sub-dependency to get the current user,
160-
so all the checks in the sub-dependancy function are ran when you use this dependency.
160+
so all the checks in the sub-dependency function are ran when you use this dependency.
161161
(see here: https://fastapi.tiangolo.com/yo/advanced/security/oauth2-scopes/#dependency-tree-and-scopes)
162162
"""
163163
if not current_user.is_admin:

packages/divbase-api/src/divbase_api/worker/worker_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class WorkerMetricsSettings:
4343
enabled: bool = os.getenv("ENABLE_WORKER_METRICS", "1") == "1"
4444
# ENABLE_WORKER_METRICS_PER_TASK controls whether per-task metrics (task/bcftools/VCF download) are collected and exposed
4545
enabled_per_task: bool = os.getenv("ENABLE_WORKER_METRICS_PER_TASK", "1") == "1"
46-
# Prometheus scrapes every 15 seconds in DivBase setup. A TLL of 5 min means it is available for 20 scrapes.
46+
# Prometheus scrapes every 15 seconds in DivBase setup. A TTL of 5 min means it is available for 20 scrapes.
4747
# Once Prometheus has scraped it, it will store the data in its own volume for its retention time (default 15d).
4848
cache_ttl_minutes: int = int(os.getenv("TASK_METRICS_CACHE_TTL_MINUTES", "5"))
4949

0 commit comments

Comments
 (0)