Skip to content

Commit 97072b0

Browse files
authored
Update dependencies (#429)
* Update dependencies Package Version Latest DirectDep -------------------------- --------------- --------------- ----- alembic 1.16.5 1.17.1 Yes sqlalchemy/alembic@rel_1_16_5...rel_1_17_1 https://alembic.sqlalchemy.org/en/latest/changelog.html boto3 1.40.29 1.40.61 Yes boto/boto3@1.40.18...1.40.61 cachetools 6.2.0 6.2.1 Yes tkem/cachetools@v6.2.0...v6.2.1 https://github.com/tkem/cachetools/blob/master/CHANGELOG.rst click 8.2.1 8.3.0 Yes Not important; only for import fastapi 0.116.1 0.120.1 Yes fastapi/fastapi@0.116.0...0.120.1 https://fastapi.tiangolo.com/release-notes/ h5py 3.14.0 3.15.1 Yes Not important; only for import openai 1.101.0 2.6.1 Yes openai/openai-python@v1.101.0...v2.6.1 psycopg2 2.9.10 2.9.11 Yes psycopg/psycopg2@2.9.10...2.9.11 https://www.psycopg.org/docs/news.html pydantic 2.11.7 2.12.3 Yes pydantic/pydantic@v2.11.7...v2.12.3 https://docs.pydantic.dev/latest/changelog/ pydantic-settings 2.10.1 2.11.0 Yes pydantic/pydantic-settings@2.10.1...v2.11.0 sqlalchemy 2.0.43 2.0.44 Yes sqlalchemy/sqlalchemy@rel_2_0_43...rel_2_0_44 https://docs.sqlalchemy.org/en/20/changelog/changelog_20.html#change-2.0.45 uvicorn 0.35.0 0.38.0 Yes Kludex/uvicorn@0.37.0...0.38.0 https://uvicorn.dev/release-notes/ anyio 4.10.0 4.11.0 botocore 1.40.29 1.40.61 botocore-stubs 1.40.29 1.40.61 certifi 2025.8.3 2025.10.5 charset-normalizer 3.4.3 3.4.4 coverage 7.10.6 7.11.0 cryptography 45.0.7 46.0.3 entitysdk 0.8.4 0.8.5 httptools 0.6.4 0.7.1 idna 3.10 3.11 iniconfig 2.1.0 2.3.0 jiter 0.10.0 0.11.1 markupsafe 3.0.2 3.0.3 moto 5.1.12 5.1.15 numpy 2.3.3 2.3.4 py-partiql-parser 0.6.1 0.6.3 pydantic-core 2.33.2 2.41.4 pyright 1.1.405 1.1.407 python-dotenv 1.1.1 1.2.1 pyyaml 6.0.2 6.0.3 rich 14.1.0 14.2.0 ruff 0.13.0 0.14.2 scipy 1.16.2 1.16.3 starlette 0.47.3 0.49.1 types-awscrt 0.27.6 0.28.2 types-boto3-cloudformation 1.40.24 1.40.57 types-boto3-dynamodb 1.40.20 1.40.56 types-boto3-ec2 1.40.24 1.40.61 types-boto3-lambda 1.40.7 1.40.61 types-boto3-lite 1.40.29 1.40.61 types-boto3-rds 1.40.29 1.40.50 types-boto3-s3 1.40.26 1.40.61 types-boto3-sqs 1.40.17 1.40.61 types-cachetools 6.2.0.20250827 6.2.0.20251022 types-pyyaml 6.0.12.20250822 6.0.12.20250915 types-s3transfer 0.13.1 0.14.0 typing-inspection 0.4.1 0.4.2 uvloop 0.21.0 0.22.1 watchfiles 1.1.0 1.1.1 xmltodict 0.15.1 1.0.2 Looking at the direct dependencies: alembic: seems safe boto3: hard to tell from changelog, mainly updates to AWS apis? cachetools: according to changelog, nothing impacting us click: Not important; only for import fastapi: dependency upgrades(fix for starlette); otherwise seems safe h5py: Not important; only for import openai: lots of changes in the repo; I assume the API wasn't broken - perhaps @jankrepl can comment? psycopg2: few changes, fixed segfault and postgresql 18 pydantic: seems ok pydantic-settings: seems ok sqlalchemy: bug fixes; hard to know if we are relying on old behavior though uvicorn: looks ok
1 parent 83f8920 commit 97072b0

File tree

5 files changed

+346
-308
lines changed

5 files changed

+346
-308
lines changed

app/cli/curation/electrical_cell_recording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def curate_assets(
5252
assets_dict: dict[ContentType, Asset] = {k: v[0] for k, v in assets.items()}
5353
# Multiple assets: keep the nwb one if any.
5454
if len(assets_dict) > 1:
55-
if asset := assets_dict.get(ContentType.nwb, None):
55+
if asset := assets_dict.get(ContentType.nwb):
5656
msg = (
5757
f"Multiple assets {sorted(assets_dict.keys())} for ElectricalCellRecording. "
5858
f"{ContentType.nwb} was kept."

app/routers/emodel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from fastapi import APIRouter
22

3-
import app.service.electrical_cell_recording
43
import app.service.emodel
54
from app.routers.admin import router as admin_router
65

app/routers/legacy/model/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def get_facets(aggs, musts, db_type, db):
142142
models.append(aliased(db_type))
143143
cur_alias = aliased(next(iter(models)))
144144
initial_alias = cur_alias
145-
property_group = PROPERTY_MAP.get(f"{target}.{property_}", None)
145+
property_group = PROPERTY_MAP.get(f"{target}.{property_}")
146146
facet_q = db.query(getattr(initial_alias, property_group), func.count().label("count"))
147147
for model, join in zip(models[1:], joins, strict=False):
148148
prev_alias = cur_alias
@@ -255,7 +255,7 @@ def add_predicates_to_query(query, must_terms, db_type, alias=None): # noqa: C9
255255
cur_alias = initial_alias
256256
else:
257257
query_map = QUERY_PATH.get(target)
258-
property_ = PROPERTY_MAP.get(f"{target}.{property_}", None)
258+
property_ = PROPERTY_MAP.get(f"{target}.{property_}")
259259
if not query_map or not property_:
260260
raise HTTPException(
261261
status_code=500,

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ builtins-ignorelist = ["license"]
146146
"S101", # Use of `assert` detected
147147
"SLF001", # private member access
148148
]
149+
"app/db/model.py" = [
150+
"A003", # builtin-attribute-shadowing
151+
]
149152

150153
[tool.ruff.lint.pydocstyle]
151154
convention = "google"

0 commit comments

Comments
 (0)