Skip to content

Commit 3fe5c01

Browse files
committed
Bump dependencies and pre-commits
1 parent 52e7815 commit 3fe5c01

File tree

5 files changed

+560
-571
lines changed

5 files changed

+560
-571
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
# - id: check-added-large-files
66
# - id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-toml
99

1010
- repo: https://github.com/charliermarsh/ruff-pre-commit
11-
rev: v0.11.9
11+
rev: v0.12.11
1212
hooks:
1313
- id: ruff
1414
args:
@@ -20,7 +20,7 @@ repos:
2020
- id: ruff-format
2121

2222
- repo: https://github.com/astral-sh/uv-pre-commit
23-
rev: 0.7.3
23+
rev: 0.8.14
2424
hooks:
2525
- id: uv-lock
2626
- id: uv-export

backend/plugin/config/crud/crud_config.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
from typing import Sequence
44

5-
from sqlalchemy import Select, update
5+
from sqlalchemy import Select
66
from sqlalchemy.ext.asyncio import AsyncSession
77
from sqlalchemy_crud_plus import CRUDPlus
88

@@ -89,9 +89,7 @@ async def bulk_update(self, db: AsyncSession, objs: list[UpdateConfigParam]) ->
8989
:param objs: 批量更新参数配置参数
9090
:return:
9191
"""
92-
params = [obj.model_dump(exclude_unset=True) for obj in objs]
93-
await db.execute(update(self.model), params)
94-
return len(params)
92+
return await self.bulk_update_models(db, objs)
9593

9694
async def delete(self, db: AsyncSession, pks: list[int]) -> int:
9795
"""

pyproject.toml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,59 +13,58 @@ requires-python = ">=3.10"
1313
dynamic = ['version']
1414
dependencies = [
1515
"aiofiles>=24.1.0",
16-
"alembic>=1.16.3",
17-
"asgi-correlation-id>=4.3.3",
18-
"asgiref>=3.9.0",
16+
"alembic>=1.16.5",
17+
"asgi-correlation-id>=4.3.4",
18+
"asgiref>=3.9.1",
1919
"asyncmy>=0.2.10",
2020
"asyncpg>=0.30.0",
21-
"bcrypt>=4.2.1",
22-
"cappa>=0.28.0",
21+
"bcrypt>=4.3.0",
22+
"cappa>=0.30.0",
2323
"celery>=5.5.3",
2424
# When celery version < 6.0.0
2525
# https://github.com/celery/celery/issues/7874
2626
"celery-aio-pool>=0.1.0rc8",
27-
"cryptography>=45.0.5",
28-
"dulwich>=0.23.2",
27+
"cryptography>=45.0.6",
28+
"dulwich>=0.24.1",
2929
"fast-captcha>=0.3.2",
3030
"fastapi-limiter>=0.1.6",
31-
"fastapi-pagination>=0.13.0",
32-
"fastapi[standard-no-fastapi-cloud-cli]>=0.116.0",
33-
"flower>=2.0.0",
34-
"gevent>=25.5.1",
35-
"granian>=2.4.2",
31+
"fastapi-pagination>=0.14.0",
32+
"fastapi[standard-no-fastapi-cloud-cli]>=0.116.1",
33+
"flower>=2.0.1",
34+
"gevent>=25.8.2",
35+
"granian>=2.5.1",
3636
"ip2loc>=1.0.0",
3737
"itsdangerous>=2.2.0",
38-
"jinja2>=3.1.4",
38+
"jinja2>=3.1.6",
3939
"loguru>=0.7.3",
4040
"msgspec>=0.19.0",
41-
"path>=17.0.0",
4241
"psutil>=7.0.0",
4342
"psycopg>=3.2.9",
4443
"pwdlib>=0.2.1",
45-
"pydantic>=2.11.0",
46-
"pydantic-settings>=2.10.0",
44+
"pydantic>=2.11.7",
45+
"pydantic-settings>=2.10.1",
4746
"pymysql>=1.1.1",
4847
"python-jose>=3.5.0",
49-
"python-socketio>=5.12.0",
50-
"redis[hiredis]>=6.2.0",
48+
"python-socketio>=5.13.0",
49+
"redis[hiredis]>=6.4.0",
5150
"rtoml>=0.12.0",
52-
"sqlalchemy-crud-plus>=1.10.0",
53-
"sqlalchemy[asyncio]>=2.0.40",
51+
"sqlalchemy-crud-plus>=1.11.0",
52+
"sqlalchemy[asyncio]>=2.0.43",
5453
"sqlparse>=0.5.3",
5554
"user-agents>=2.2.0",
5655
]
5756

5857
[dependency-groups]
5958
dev = [
60-
"pytest>=8.0.0",
61-
"pytest-sugar>=1.0.0",
59+
"pytest>=8.4.0",
60+
"pytest-sugar>=1.1.1",
6261
]
6362
lint = [
64-
"pre-commit>=4.0.0",
63+
"pre-commit>=4.3.0",
6564
]
6665
server = [
67-
"aio-pika>=9.4.3",
68-
"wait-for-it>=2.2.2",
66+
"aio-pika>=9.5.7",
67+
"wait-for-it>=2.3.0",
6968
]
7069

7170
[tool.uv]

requirements.txt

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
-e .
44
aiofiles==24.1.0
55
# via fastapi-best-architecture
6-
alembic==1.16.4
6+
alembic==1.16.5
77
# via fastapi-best-architecture
88
amqp==5.3.1
99
# via kombu
1010
annotated-types==0.7.0
1111
# via pydantic
12-
anyio==4.9.0
12+
anyio==4.10.0
1313
# via
1414
# httpx
1515
# starlette
@@ -32,7 +32,7 @@ bidict==0.23.1
3232
# via python-socketio
3333
billiard==4.2.1
3434
# via celery
35-
cappa==0.28.1
35+
cappa==0.30.0
3636
# via fastapi-best-architecture
3737
celery==5.5.3
3838
# via
@@ -41,7 +41,7 @@ celery==5.5.3
4141
# flower
4242
celery-aio-pool==0.1.0rc8
4343
# via fastapi-best-architecture
44-
certifi==2025.7.14
44+
certifi==2025.8.3
4545
# via
4646
# httpcore
4747
# httpx
@@ -73,17 +73,17 @@ colorama==0.4.6 ; sys_platform == 'win32'
7373
# loguru
7474
# pytest
7575
# uvicorn
76-
cryptography==45.0.5
76+
cryptography==45.0.6
7777
# via fastapi-best-architecture
78-
distlib==0.3.9
78+
distlib==0.4.0
7979
# via virtualenv
8080
dnspython==2.7.0
8181
# via email-validator
82-
dulwich==0.23.2
82+
dulwich==0.24.1
8383
# via fastapi-best-architecture
8484
ecdsa==0.19.1
8585
# via python-jose
86-
email-validator==2.2.0
86+
email-validator==2.3.0
8787
# via fastapi
8888
exceptiongroup==1.3.0 ; python_full_version < '3.11'
8989
# via
@@ -96,21 +96,21 @@ fastapi==0.116.1
9696
# fastapi-best-architecture
9797
# fastapi-limiter
9898
# fastapi-pagination
99-
fastapi-cli==0.0.8
99+
fastapi-cli==0.0.10
100100
# via fastapi
101101
fastapi-limiter==0.1.6
102102
# via fastapi-best-architecture
103-
fastapi-pagination==0.13.3
103+
fastapi-pagination==0.14.0
104104
# via fastapi-best-architecture
105-
filelock==3.18.0
105+
filelock==3.19.1
106106
# via virtualenv
107107
flower==2.0.1
108108
# via fastapi-best-architecture
109-
gevent==25.5.1
109+
gevent==25.8.2
110110
# via fastapi-best-architecture
111-
granian==2.4.2
111+
granian==2.5.1
112112
# via fastapi-best-architecture
113-
greenlet==3.2.3
113+
greenlet==3.2.4
114114
# via
115115
# gevent
116116
# sqlalchemy
@@ -127,9 +127,9 @@ httptools==0.6.4
127127
# via uvicorn
128128
httpx==0.28.1
129129
# via fastapi
130-
humanize==4.12.3
130+
humanize==4.13.0
131131
# via flower
132-
identify==2.6.12
132+
identify==2.6.13
133133
# via pre-commit
134134
idna==3.10
135135
# via
@@ -152,7 +152,7 @@ loguru==0.7.3
152152
# via fastapi-best-architecture
153153
mako==1.3.10
154154
# via alembic
155-
markdown-it-py==3.0.0
155+
markdown-it-py==4.0.0
156156
# via rich
157157
markupsafe==3.0.2
158158
# via
@@ -169,19 +169,16 @@ packaging==25.0
169169
# asgi-correlation-id
170170
# kombu
171171
# pytest
172-
# pytest-sugar
173-
path==17.1.0
174-
# via fastapi-best-architecture
175172
pillow==11.3.0
176173
# via fast-captcha
177-
platformdirs==4.3.8
174+
platformdirs==4.4.0
178175
# via virtualenv
179176
pluggy==1.6.0
180177
# via pytest
181-
pre-commit==4.2.0
178+
pre-commit==4.3.0
182179
prometheus-client==0.22.1
183180
# via flower
184-
prompt-toolkit==3.0.51
181+
prompt-toolkit==3.0.52
185182
# via click-repl
186183
psutil==7.0.0
187184
# via fastapi-best-architecture
@@ -210,11 +207,11 @@ pygments==2.19.2
210207
# via
211208
# pytest
212209
# rich
213-
pymysql==1.1.1
210+
pymysql==1.1.2
214211
# via fastapi-best-architecture
215212
pytest==8.4.1
216213
# via pytest-sugar
217-
pytest-sugar==1.0.0
214+
pytest-sugar==1.1.1
218215
python-dateutil==2.9.0.post0
219216
# via celery
220217
python-dotenv==1.1.1
@@ -235,16 +232,16 @@ pyyaml==6.0.2
235232
# via
236233
# pre-commit
237234
# uvicorn
238-
redis==6.2.0
235+
redis==6.4.0
239236
# via
240237
# fastapi-best-architecture
241238
# fastapi-limiter
242-
rich==14.0.0
239+
rich==14.1.0
243240
# via
244241
# cappa
245242
# rich-toolkit
246243
# typer
247-
rich-toolkit==0.14.8
244+
rich-toolkit==0.15.0
248245
# via fastapi-cli
249246
rsa==4.9.1
250247
# via python-jose
@@ -264,16 +261,16 @@ six==1.17.0
264261
# python-dateutil
265262
sniffio==1.3.1
266263
# via anyio
267-
sqlalchemy==2.0.41
264+
sqlalchemy==2.0.43
268265
# via
269266
# alembic
270267
# fastapi-best-architecture
271268
# sqlalchemy-crud-plus
272-
sqlalchemy-crud-plus==1.10.0
269+
sqlalchemy-crud-plus==1.11.0
273270
# via fastapi-best-architecture
274271
sqlparse==0.5.3
275272
# via fastapi-best-architecture
276-
starlette==0.47.1
273+
starlette==0.47.3
277274
# via
278275
# asgi-correlation-id
279276
# fastapi
@@ -283,32 +280,33 @@ tomli==2.2.1 ; python_full_version < '3.11'
283280
# via
284281
# alembic
285282
# pytest
286-
tornado==6.5.1
283+
tornado==6.5.2
287284
# via flower
288-
type-lens==0.2.3
285+
type-lens==0.2.5
289286
# via cappa
290-
typer==0.16.0
287+
typer==0.17.3
291288
# via fastapi-cli
292-
typing-extensions==4.14.1
289+
typing-extensions==4.15.0
293290
# via
294291
# alembic
295292
# anyio
296293
# asgiref
297294
# cappa
295+
# dulwich
298296
# exceptiongroup
299297
# fastapi
300298
# fastapi-pagination
301299
# psycopg
302300
# pydantic
303301
# pydantic-core
304-
# rich
305302
# rich-toolkit
306303
# sqlalchemy
307304
# starlette
308305
# type-lens
309306
# typer
310307
# typing-inspection
311308
# uvicorn
309+
# virtualenv
312310
typing-inspection==0.4.1
313311
# via
314312
# pydantic
@@ -336,7 +334,7 @@ vine==5.1.0
336334
# amqp
337335
# celery
338336
# kombu
339-
virtualenv==20.31.2
337+
virtualenv==20.34.0
340338
# via pre-commit
341339
watchfiles==1.1.0
342340
# via uvicorn
@@ -348,7 +346,7 @@ win32-setctime==1.2.0 ; sys_platform == 'win32'
348346
# via loguru
349347
wsproto==1.2.0
350348
# via simple-websocket
351-
zope-event==5.1
349+
zope-event==5.1.1
352350
# via gevent
353351
zope-interface==7.2
354352
# via gevent

0 commit comments

Comments
 (0)