11ci :
2- autofix_commit_msg : " [pre-commit.ci] auto fixes from pre-commit.com hooks [dependabot skip] "
2+ autofix_commit_msg : " [pre-commit.ci] auto fixes from pre-commit.com hooks"
33repos :
44 - repo : https://github.com/pre-commit/pre-commit-hooks
5- rev : v4.5 .0
5+ rev : v5.0 .0
66 hooks :
77 - id : check-yaml
88 args : [--unsafe]
@@ -11,67 +11,50 @@ repos:
1111 - id : check-merge-conflict
1212 - id : end-of-file-fixer
1313
14+ # - repo: https://github.com/renovatebot/pre-commit-hooks
15+ # rev: 39.69.2
16+ # hooks:
17+ # - id: renovate-config-validator
18+ # files: ^renovate\.json$
19+
1420 - repo : https://github.com/astral-sh/ruff-pre-commit
15- rev : v0.1.14
21+ rev : v0.11.2
1622 hooks :
1723 - id : ruff
24+ args : ["--output-format=concise"]
1825 name : " lint with ruff"
1926 - id : ruff-format
2027 name : " format with ruff"
2128
22- - repo : https://github.com/jackdewinter/pymarkdown
23- rev : 0.9.16
24- hooks :
25- - id : pymarkdown
26- name : " check markdown"
27- exclude : ^.github/|CHANGELOG
28- args : [-d, "MD046", scan]
29-
3029 - repo : https://github.com/pre-commit/mirrors-mypy
31- rev : " v1.8 .0" # Use the sha / tag you want to point at
30+ rev : " v1.15 .0" # Use the sha / tag you want to point at
3231 hooks :
3332 - id : mypy
34- name : " Check with Mypy"
35-
36- - repo : https://github.com/RobertCraigie/pyright-python
37- rev : v1.1.349
38- hooks :
39- - id : pyright
40- name : " Check with Pyright"
41- exclude : tests
42- additional_dependencies : [sqlalchemy, uvicorn, fastapi]
43-
44- - repo : https://github.com/python-poetry/poetry
45- rev : " 1.7.0"
46- hooks :
47- - id : poetry-check
48- name : " check poetry files"
49- # - id: poetry-lock
33+ name : " run mypy"
34+ additional_dependencies :
35+ - pydantic
36+ - sqladmin
5037
51- - repo : https://github.com/python-poetry/poetry-plugin-export
52- rev : " 1.6.0"
38+ - repo : https://github.com/astral-sh/uv-pre-commit
39+ # uv version.
40+ rev : 0.6.9
5341 hooks :
54- - id : poetry-export
55- name : " export production dependencies"
42+ # Update the uv lockfile
43+ - id : uv-lock
44+ - id : uv-export
45+ name : " Export dependencies to 'requirements.txt'"
5646 args :
5747 [
58- " --without-hashes" ,
59- " -f" ,
60- " requirements.txt" ,
61- " -o" ,
62- " requirements.txt" ,
63- " --without" ,
64- " dev" ,
48+ " --no-hashes" ,
49+ " --no-dev" ,
50+ " --no-emit-project" ,
51+ " --output-file=requirements.txt" ,
6552 ]
66- - id : poetry -export
67- name : " export development dependencies"
53+ - id : uv -export
54+ name : " Export dev dependencies to 'requirements-dev.txt' "
6855 args :
6956 [
70- " --without-hashes" ,
71- " -f" ,
72- " requirements.txt" ,
73- " -o" ,
74- " requirements-dev.txt" ,
75- " --with" ,
76- " dev" ,
57+ " --no-hashes" ,
58+ " --no-emit-project" ,
59+ " --output-file=requirements-dev.txt" ,
7760 ]
0 commit comments