Skip to content

Bulk asynchronous downloader for multiple file hosts

ci/cd: add typecheck workflow (#1877)

NTFSvolumef7bc28d52dab
diff --git a/.github/workflows/typecheck.yaml b/.github/workflows/typecheck.yaml
new file mode 100644
index 000000000..11d698982
--- /dev/null
+++ b/.github/workflows/typecheck.yaml
@@ -0,0 +1,34 @@
+name: Type Check
+
+on: [pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ typecheck:
+ runs-on: ubuntu-slim
+ timeout-minutes: 10
+ strategy:
+ matrix:
+ python-version: ["3.11"]
+
+ steps:
+ - uses: actions/[email protected]
+ with:
+ persist-credentials: false
+
+ - name: Install uv
+ uses: astral-sh/[email protected]
+ with:
+ python-version: ${{ matrix.python-version }}
+ enable-cache: false
+
+ - name: Install dependencies
+ run: |
+ uv sync --all-extras
+
+ - name: Run basedpyright
+ timeout-minutes: 5
+ run: |
+ uvx basedpyright cyberdrop_dl --level error
diff --git a/pyproject.toml b/pyproject.toml
index 4921ea2fe..0c412bce6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -90,6 +90,7 @@ dev = [
ignore = ["cyberdrop_dl/dependencies/browser_cookie3.py"]
include = ["cyberdrop_dl", "scripts", "tests"]
reportExplicitAny = false
+reportImplicitAbstractClass = false
reportImplicitOverride = "hint"
reportImplicitStringConcatenation = false
reportImportCycles = "warning"