File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1919 matrix :
2020 python-version : ['3.12', '3.13']
2121 platform : [ubuntu-latest, windows-latest]
22+ lint-stage : [pre-commit, pre-push, manual]
2223
2324 runs-on : ${{ matrix.platform }}
2425
3738
3839 - name : Run lint
3940 run : |
40- uv run --extra=dev --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-commit --verbose
41- uv run --extra=dev --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage pre-push --verbose
42- uv run --extra=dev --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage manual --verbose
41+ uv run --extra=dev --python=${{ matrix.python-version }} pre-commit run --all-files --hook-stage ${{ matrix.lint-stage }} --verbose
4342
4443 - name : Run tests
4544 run : |
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ def _upload_local_file(
4040 if parsed .scheme != "file" :
4141 return None
4242
43- file_path = Path (url2pathname (pathname = parsed .path ))
43+ # Ignore ``mypy`` error as the keyword arguments are different across
44+ # Python versions and platforms.
45+ file_path = Path (url2pathname (parsed .path )) # type: ignore[misc]
4446 with file_path .open (mode = "rb" ) as f :
4547 uploaded_file = session .upload (
4648 file = f ,
You can’t perform that action at this time.
0 commit comments