Skip to content

Commit d3ca358

Browse files
Merge pull request #270 from adamtheturtle/parallel
Run lint stages in parallel
2 parents c8da013 + 04a8a4e commit d3ca358

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
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

@@ -37,9 +38,7 @@ jobs:
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: |

src/_notion_scripts/upload.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)