fix: resolve CI linting errors
Some checks failed
CI / test (3.10) (push) Failing after 10s
CI / test (3.11) (push) Failing after 11s
CI / test (3.12) (push) Failing after 11s
CI / lint (push) Failing after 11s
CI / build (push) Failing after 13s

This commit is contained in:
2026-02-02 15:01:00 +00:00
parent 07ec3fbb9e
commit 54c46c759d

View File

@@ -60,8 +60,8 @@ struct Point {
def test_summarize_change_simple(self, code_analyzer): def test_summarize_change_simple(self, code_analyzer):
"""Test summarizing simple code changes.""" """Test summarizing simple code changes."""
old_code = "def hello():\n return 'Hello'" old_code = "def hello():\\n return 'Hello'"
new_code = "def hello():\n return 'Hello, World!'" new_code = "def hello():\\n return 'Hello, World!'"
summary = code_analyzer.summarize_change(old_code, new_code, "python") summary = code_analyzer.summarize_change(old_code, new_code, "python")
@@ -71,7 +71,7 @@ struct Point {
def test_summarize_change_added_function(self, code_analyzer): def test_summarize_change_added_function(self, code_analyzer):
"""Test summarizing when a function is added.""" """Test summarizing when a function is added."""
old_code = "" old_code = ""
new_code = "def new_func():\n pass" new_code = "def new_func():\\n pass"
summary = code_analyzer.summarize_change(old_code, new_code, "python") summary = code_analyzer.summarize_change(old_code, new_code, "python")
@@ -80,7 +80,7 @@ struct Point {
def test_summarize_change_removed_function(self, code_analyzer): def test_summarize_change_removed_function(self, code_analyzer):
"""Test summarizing when a function is removed.""" """Test summarizing when a function is removed."""
old_code = "def old_func():\n pass" old_code = "def old_func():\\n pass"
new_code = "" new_code = ""
summary = code_analyzer.summarize_change(old_code, new_code, "python") summary = code_analyzer.summarize_change(old_code, new_code, "python")
@@ -119,8 +119,7 @@ def multiply(x, y):
def test_fallback_analysis_line_count(self, code_analyzer): def test_fallback_analysis_line_count(self, code_analyzer):
"""Test that fallback analysis includes line count.""" """Test that fallback analysis includes line count."""
old_code = "line1\nline2" new_code = "line1\\nline2\\nline3"
new_code = "line1\nline2\nline3"
result = code_analyzer._analyze_without_parser(new_code) result = code_analyzer._analyze_without_parser(new_code)