Skip to content

Commit 97a1d1f

Browse files
committed
feat(template): replace mypy with pyrefly and update rattle deps
1 parent 6377421 commit 97a1d1f

1 file changed

Lines changed: 16 additions & 19 deletions

File tree

template/pyproject.toml.jinja

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ dev = [
6969
"coverage>=7.13.1",
7070
"ruff==0.15.8",
7171
"pre-commit>=4.5.1",
72-
"mypy>=1.19.1",
72+
"pyrefly>=1.0.0",
7373
"codespell>=2.4.1",
74-
"rattle-lint>=1.0.4",
75-
"rattle-blank-lines>=0.2.4",
74+
"rattle-lint>=2.1.1",
7675
]
7776

7877
[project.urls]
@@ -118,25 +117,23 @@ omit = [
118117
"tests/**",
119118
]
120119

121-
[tool.mypy]
122-
python_version = "{{ python_min_version }}"
123-
files = ["{{ package_name }}"]
124-
exclude = ["^tests/"]
125-
126-
disallow_untyped_defs = true
127-
disallow_untyped_calls = true
128-
disallow_any_generics = true
129-
no_implicit_optional = true
130-
warn_unused_ignores = true
131-
warn_redundant_casts = true
132-
warn_return_any = true
133-
warn_unused_configs = true
134-
strict_equality = true
135-
ignore_missing_imports = true
120+
[tool.pyrefly]
121+
project-includes = ["{{ package_name }}"]
122+
project-excludes = ["tests/**"]
123+
search-path = ["."]
124+
disable-search-path-heuristics = true
125+
python-version = "{{ python_min_version }}"
126+
enabled-ignores = ["type", "pyrefly"]
127+
use-ignore-files = true
128+
check-unannotated-defs = true
129+
infer-return-types = "checked"
130+
infer-with-first-use = true
131+
strict-callable-subtyping = false
132+
spec-compliant-overloads = false
136133

137134
[tool.rattle]
138135
root = true
139-
enable = ["rattle_blank_lines.rules"]
136+
enable = ["blank-lines"]
140137
disable = ["rattle.rules"]
141138

142139
[tool.ruff]

0 commit comments

Comments
 (0)