Skip to content

Commit 8140253

Browse files
committed
Remove debug logs in pyrefly lint handler. Don't get file content from file manager because pyrefly cannot accept it
1 parent 877dbd1 commit 8140253

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

extensions/fine_python_pyrefly/fine_python_pyrefly/lint_handler.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ async def run_on_single_file(
5555
pass
5656

5757
file_version = await self.file_manager.get_file_version(file_path)
58-
file_content = await self.file_manager.get_content(file_path)
59-
lint_messages = await self.run_pyrefly_lint_on_single_file(file_path, file_content)
58+
lint_messages = await self.run_pyrefly_lint_on_single_file(file_path)
6059
messages[str(file_path)] = lint_messages
6160
await self.cache.save_file_cache(
6261
file_path, file_version, self.CACHE_KEY, lint_messages
@@ -80,7 +79,6 @@ async def run(
8079
async def run_pyrefly_lint_on_single_file(
8180
self,
8281
file_path: Path,
83-
file_content: str,
8482
) -> list[lint_action.LintMessage]:
8583
"""Run pyrefly type checking on a single file"""
8684
lint_messages: list[lint_action.LintMessage] = []
@@ -101,7 +99,6 @@ async def run_pyrefly_lint_on_single_file(
10199
output = pyrefly_process.get_output()
102100
try:
103101
pyrefly_results = json.loads(output)
104-
self.logger.info(pyrefly_results)
105102
for error in pyrefly_results['errors']:
106103
lint_message = map_pyrefly_error_to_lint_message(error)
107104
lint_messages.append(lint_message)

0 commit comments

Comments
 (0)