From ccd2d6c003d10657949bc4f56fa19d8ea306c4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Diridollou?= Date: Mon, 19 May 2025 17:57:11 -0400 Subject: [PATCH 1/2] GH1222 Add ty to repo --- .github/workflows/test.yml | 6 ++++++ pyproject.toml | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b29512938..2cbe94525 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,6 +44,12 @@ jobs: - name: Install pandas-stubs and run tests on the installed stubs run: poetry run poe test_dist + - name: Run ty on current repo + run: poetry run ty check pandas-stubs + + - name: Run ty on current repo + run: poetry run ty check tests + precommit: runs-on: ubuntu-latest timeout-minutes: 10 diff --git a/pyproject.toml b/pyproject.toml index 19579a6b4..7ac9d5672 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,7 @@ packages = [{ "include" = "pandas-stubs" }] python = ">=3.10" types-pytz = ">= 2022.1.1" numpy = ">= 1.23.5" +ty = "^0.0.1a5" [tool.poetry.group.dev.dependencies] mypy = "1.15.0" From 7d69320977961a43ff43891e30f9f842703f022a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Diridollou?= Date: Mon, 19 May 2025 18:14:10 -0400 Subject: [PATCH 2/2] GH1222 POC ty --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cbe94525..8fd697f75 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,10 +45,10 @@ jobs: run: poetry run poe test_dist - name: Run ty on current repo - run: poetry run ty check pandas-stubs + run: poetry run ty check tests - name: Run ty on current repo - run: poetry run ty check tests + run: poetry run ty check pandas-stubs precommit: runs-on: ubuntu-latest