Skip to content

Commit cc881fc

Browse files
committed
pyrefly support
1 parent 494b3b0 commit cc881fc

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
- name: Run ty on 'pandas-stubs' (using the local stubs) and on the local stubs
3939
run: poetry run poe ty
4040

41+
- name: Run pyrefly on the local stubs
42+
run: poetry run poe pyrefly
43+
4144
- name: Run pyright on 'tests' (using the local stubs) and on the local stubs
4245
run: poetry run poe pyright
4346

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ python = ">=3.10"
3434
types-pytz = ">= 2022.1.1"
3535
numpy = ">= 1.23.5"
3636
ty = "^0.0.1a8"
37+
pyrefly = "^0.21.0"
3738

3839
[tool.poetry.group.dev.dependencies]
3940
mypy = "1.16.0"
@@ -108,6 +109,10 @@ script = "scripts.test:test(dist=True, type_checker='mypy')"
108109
help = "Run ty on pandas-stubs"
109110
script = "scripts.test.run:ty"
110111

112+
[tool.poe.tasks.pyrefly]
113+
help = "Run pyrefly on pandas-stubs"
114+
script = "scripts.test.run:pyrefly"
115+
111116
[tool.poe.tasks.pyright]
112117
help = "Run pyright on 'tests' (using the local stubs) and on the local stubs"
113118
script = "scripts.test.run:pyright_src"

scripts/test/_step.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
name="Run ty on 'pandas-stubs' (using the local stubs) and on the local stubs",
1010
run=run.ty,
1111
)
12+
pyrefly_src = Step(
13+
name="Run pyrefly on the local stubs",
14+
run=run.pyrefly,
15+
)
1216
pyright_src = Step(
1317
name="Run pyright on 'tests' (using the local stubs) and on the local stubs",
1418
run=run.pyright_src,

scripts/test/run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,8 @@ def released_mypy():
156156
def ty():
157157
cmd = ["ty", "check", "pandas-stubs"]
158158
subprocess.run(cmd, check=True)
159+
160+
161+
def pyrefly():
162+
cmd = ["pyrefly", "check", "pandas-stubs"]
163+
subprocess.run(cmd, check=True)

0 commit comments

Comments
 (0)