refactor(knowledge-base mcp server): adjust formatting for consistency and readability

Improved code formatting, line breaks, and indentation across chunking logic and multiple test modules to enhance code clarity and maintain consistent style. No functional changes made.
This commit is contained in:
2026-01-06 17:20:31 +01:00
parent 3f23bc3db3
commit 51404216ae
15 changed files with 306 additions and 155 deletions

View File

@@ -1,7 +1,6 @@
"""Tests for chunking module."""
class TestBaseChunker:
"""Tests for base chunker functionality."""
@@ -149,7 +148,7 @@ class TestMarkdownChunker:
"""Test that chunker respects heading hierarchy."""
from chunking.markdown import MarkdownChunker
markdown = '''# Main Title
markdown = """# Main Title
Introduction paragraph.
@@ -164,7 +163,7 @@ More detailed content.
## Section Two
Content for section two.
'''
"""
chunker = MarkdownChunker(
chunk_size=200,
@@ -188,7 +187,7 @@ Content for section two.
"""Test handling of code blocks in markdown."""
from chunking.markdown import MarkdownChunker
markdown = '''# Code Example
markdown = """# Code Example
Here's some code:
@@ -198,7 +197,7 @@ def hello():
```
End of example.
'''
"""
chunker = MarkdownChunker(
chunk_size=500,
@@ -256,12 +255,12 @@ class TestTextChunker:
"""Test that chunker respects paragraph boundaries."""
from chunking.text import TextChunker
text = '''First paragraph with some content.
text = """First paragraph with some content.
Second paragraph with different content.
Third paragraph to test chunking behavior.
'''
"""
chunker = TextChunker(
chunk_size=100,