Skip to content

Commit e4f9b72

Browse files
committed
πŸ§‘β€πŸ’» add pyrefly to tox
1 parent c88c1ee commit e4f9b72

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

β€Žpyproject.tomlβ€Ž

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ split-on-trailing-comma = false
225225
[tool.tox]
226226
min_version = "4"
227227
requires = ["tox-uv>=1"]
228-
env_list = ["lint", "pyright", "mypy", "3.11", "3.12", "3.13", "3.14"]
228+
env_list = ["lint", "pyrefly", "pyright", "mypy", "3.11", "3.12", "3.13", "3.14"]
229229

230230
[tool.tox.env_run_base]
231231
description = "stubtest with {base_python}"
@@ -252,11 +252,17 @@ commands = [
252252
["ruff", "format", "--check"],
253253
]
254254

255+
[tool.tox.env.pyrefly]
256+
description = "pyrefly"
257+
runner = "uv-venv-lock-runner"
258+
dependency_groups = ["type"]
259+
commands = [["pyrefly", "check", { replace = "posargs", default = [], extend = true }]]
260+
255261
[tool.tox.env.pyright]
256262
description = "basedpyright"
257263
runner = "uv-venv-lock-runner"
258264
dependency_groups = ["type"]
259-
commands = [["basedpyright"]]
265+
commands = [["basedpyright", { replace = "posargs", default = [], extend = true }]]
260266

261267
[tool.tox.env.mypy]
262268
description = "mypy"
@@ -265,8 +271,6 @@ dependency_groups = ["type"]
265271
commands = [
266272
[
267273
"mypy",
268-
"--hide-error-context",
269-
"--hide-error-code-links",
270274
"--no-incremental",
271275
{ replace = "posargs", default = ["."], extend = true },
272276
],

0 commit comments

Comments
Β (0)