Skip to content

Commit cf4aa33

Browse files
CosmoHacclaude
andcommitted
style: ruff format on new scala files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46b63e2 commit cf4aa33

3 files changed

Lines changed: 43 additions & 39 deletions

File tree

server.json

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,30 @@
11
{
2-
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3-
"name": "io.github.cranot/roam-code",
4-
"description": "Instant codebase comprehension for AI coding agents. Pre-indexes symbols, call graphs, dependencies, architecture layers, and git history into a local SQLite DB. 101 MCP tools, 10 resources, 5 prompts. 26 languages. 100% local, zero API keys.",
5-
"version": "11.1.2",
6-
"packages": [
7-
{
8-
"registry_name": "pypi",
9-
"name": "roam-code",
10-
"version": "11.1.2",
11-
"runtime": "python",
12-
"runtime_arguments": [],
13-
"environment_variables": [
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3+
"name": "io.github.cranot/roam-code",
4+
"description": "Instant codebase comprehension for AI coding agents. Pre-indexes symbols, call graphs, dependencies, architecture layers, and git history into a local SQLite DB. 101 MCP tools, 10 resources, 5 prompts. 26 languages. 100% local, zero API keys.",
5+
"version": "11.1.2",
6+
"packages": [
147
{
15-
"name": "ROAM_MCP_PRESET",
16-
"description": "Tool preset: core (23 tools, default), full (101 tools), review, refactor, debug, architecture",
17-
"required": false,
18-
"default": "core"
8+
"registry_name": "pypi",
9+
"name": "roam-code",
10+
"version": "11.1.2",
11+
"runtime": "python",
12+
"runtime_arguments": [],
13+
"environment_variables": [
14+
{
15+
"name": "ROAM_MCP_PRESET",
16+
"description": "Tool preset: core (23 tools, default), full (101 tools), review, refactor, debug, architecture",
17+
"required": false,
18+
"default": "core",
19+
}
20+
],
1921
}
20-
]
21-
}
22-
],
23-
"tools": {
24-
"count": 101
25-
},
26-
"resources": {
27-
"count": 10
28-
},
29-
"prompts": {
30-
"count": 5
31-
},
32-
"remotes": [],
33-
"repository": {
34-
"url": "https://github.com/Cranot/roam-code",
35-
"source": "github"
36-
},
37-
"websiteUrl": "https://cranot.github.io/roam-code/",
38-
"license": "MIT"
22+
],
23+
"tools": {"count": 101},
24+
"resources": {"count": 10},
25+
"prompts": {"count": 5},
26+
"remotes": [],
27+
"repository": {"url": "https://github.com/Cranot/roam-code", "source": "github"},
28+
"websiteUrl": "https://cranot.github.io/roam-code/",
29+
"license": "MIT",
3930
}

src/roam/languages/scala_lang.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,14 @@ def _extract_function(self, node, source, symbols, parent_name):
236236
for i, child in enumerate(node.children):
237237
if child.type == ":" and i + 1 < len(node.children):
238238
ret_type = node.children[i + 1]
239-
if ret_type.type in ("type_identifier", "generic_type", "compound_type",
240-
"infix_type", "tuple_type", "function_type"):
239+
if ret_type.type in (
240+
"type_identifier",
241+
"generic_type",
242+
"compound_type",
243+
"infix_type",
244+
"tuple_type",
245+
"function_type",
246+
):
241247
sig += f": {self.node_text(ret_type, source)}"
242248
break
243249

@@ -274,8 +280,14 @@ def _extract_val(self, node, source, symbols, parent_name, *, is_var: bool):
274280
for i, child in enumerate(node.children):
275281
if child.type == ":" and i + 1 < len(node.children):
276282
type_node = node.children[i + 1]
277-
if type_node.type in ("type_identifier", "generic_type", "compound_type",
278-
"infix_type", "tuple_type", "function_type"):
283+
if type_node.type in (
284+
"type_identifier",
285+
"generic_type",
286+
"compound_type",
287+
"infix_type",
288+
"tuple_type",
289+
"function_type",
290+
):
279291
sig += f": {self.node_text(type_node, source)}"
280292
break
281293

tests/test_scala.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for the Scala Tier 1 extractor."""
2+
23
from __future__ import annotations
34

45
import pytest

0 commit comments

Comments
 (0)