Skip to content

Commit be3ff51

Browse files
authored
migrate to pyrefly (#35)
1 parent 4a0fe2f commit be3ff51

File tree

3 files changed

+12
-30
lines changed

3 files changed

+12
-30
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
run: |
3333
uv sync
3434
35-
- name: Lint with Ruff and Mypy
35+
- name: Lint with Ruff and Pyrefly
3636
run: |
3737
uv run ruff check --output-format=github .
3838
uv run ruff format --diff
39-
uv run mypy .
39+
uv run pyrefly check .
4040
4141
- name: Test with pytest
4242
run: |

mypy.ini

Lines changed: 0 additions & 25 deletions
This file was deleted.

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@ documentation = "https://github.com/ThoughtWorksInc/daffy/blob/master/README.md"
3737
dev = [
3838
"pytest>=8.4.1",
3939
"pre-commit>=4.0.0",
40-
"mypy>=1.16.1",
40+
"pyrefly",
4141
"pytest-mock>=3.14.1",
4242
"pytest-cov>=6.0.0",
4343
"coverage[toml]>=7.9.1",
4444
"pydocstyle>=6.3.0",
4545
"ruff>=0.12.0",
4646
"pandas>=1.5.1,<3.0.0",
4747
"polars>=1.7.0",
48-
"pandas-stubs>=2.2.2.240807",
4948
]
5049

5150
[build-system]
@@ -93,4 +92,12 @@ line-length = 120
9392
target-version = "py39"
9493

9594
[tool.ruff.lint]
96-
select = ["F", "E", "W", "I", "N"]
95+
select = ["F", "E", "W", "I", "N", "ANN"]
96+
ignore = [
97+
"ANN401", # Allow Any type (needed for decorator wrappers)
98+
]
99+
100+
[tool.pyrefly]
101+
python-version = "3.10"
102+
untyped-def-behavior = "check-and-infer-return-any"
103+
permissive-ignores = true

0 commit comments

Comments
 (0)