Skip to content

Commit ac7bf3d

Browse files
committed
added pyrefly optional dependency
skip rename unit test for pyrefly for now
1 parent 1c5253c commit ac7bf3d

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ Homepage = "https://github.com/mazyod/lsp-python-types"
3434
Repository = "https://github.com/mazyod/lsp-python-types"
3535
Documentation = "https://github.com/mazyod/lsp-python-types#readme"
3636

37+
[project.optional-dependencies]
38+
pyrefly = [
39+
"pyrefly>=0.32.0",
40+
]
41+
3742
[dependency-groups]
3843
dev = [
3944
"pytest>=9.0.0,<10",

tests/test_session.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ def greet(name: str) -> str:
139139
async def test_session_rename(lsp_backend, backend_name):
140140
"""Test symbol renaming functionality"""
141141

142+
# FIXME: Pyrefly detects file as external and disables rename edits
143+
if backend_name == "pyrefly":
144+
pytest.skip("Pyrefly detects file as external and disables rename edits")
145+
return
146+
142147
code = """\
143148
def greet(name: str) -> str:
144149
return f"Hello, {name}"

uv.lock

Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)