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 2020      - uses : actions/setup-python@v5 
2121        with :
2222          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`
2330      - uses : pre-commit/action@v3.0.1 
2431      - uses : pre-commit-ci/lite-action@v1.1.0 
2532        if : always() 
Original file line number Diff line number Diff line change @@ -87,34 +87,10 @@ repos:
8787    rev : 0.0.10 
8888    hooks :
8989      - 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
9291    hooks :
9392      - 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