File tree Expand file tree Collapse file tree 2 files changed +12
-29
lines changed Expand file tree Collapse file tree 2 files changed +12
-29
lines changed Original file line number Diff line number Diff line change 20
20
- uses : actions/setup-python@v5
21
21
with :
22
22
python-version : ${{ matrix.python-version }}
23
+ - uses : astral-sh/setup-uv@v6
24
+ with :
25
+ enable-cache : true
26
+ - run : echo "UV_PROJECT_ENVIRONMENT=$(python -c "import sysconfig; print(sysconfig.get_config_var('prefix'))")" >> $GITHUB_ENV
27
+ - run : uv python pin ${{ matrix.python-version }} # uv requires .python-version to match OS Python: https://github.com/astral-sh/uv/issues/11389
28
+ - run : uv sync --python-preference only-system
29
+ - run : git checkout .python-version # For clean git diff given `pre-commit run --show-diff-on-failure`
23
30
-
uses :
pre-commit/[email protected]
24
31
-
uses :
pre-commit-ci/[email protected]
25
32
if : always()
Original file line number Diff line number Diff line change @@ -87,34 +87,10 @@ repos:
87
87
rev : 0.0.10
88
88
hooks :
89
89
- id : markdown-toc-creator
90
- - repo : https://github.com/pre-commit/mirrors-mypy
91
- rev : v1.17.1
90
+ - repo : local # Use local so we can inspect paperqa.version
92
91
hooks :
93
92
- id : mypy
94
- args : [--scripts-are-modules]
95
- additional_dependencies :
96
- - aiohttp>=3.10.6 # Match pyproject.toml
97
- - PyMuPDF>=1.24.12
98
- - anyio
99
- - fhlmi>=0.28 # Match pyproject.toml
100
- - fhaviary[llm]>=0.20 # Match pyproject.toml
101
- - ldp>=0.25.0 # Match pyproject.toml
102
- - html2text
103
- - httpx
104
- - pybtex
105
- - numpy
106
- - pydantic~=2.11 # Match pyproject.toml
107
- - pydantic-settings
108
- - PyPDF>=3 # Match pyproject.toml
109
- - pytest
110
- - pytest-asyncio
111
- - pytest-subtests
112
- - qdrant-client
113
- - rich
114
- - tantivy>=0.22.2 # Match pyproject.toml
115
- - tenacity
116
- - tiktoken>=0.4.0 # Match pyproject.toml
117
- - types-setuptools
118
- - types-PyYAML
119
- - sentence-transformers
120
- - pyzotero
93
+ name : mypy
94
+ entry : mypy
95
+ language : system
96
+ types_or : [python, pyi]
You can’t perform that action at this time.
0 commit comments