mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
feat(tree-sitter-overlay-extra): parse JS/C/Java overlay via optional extra
Add openultrasast[semantic] with official grammar wheels and one CST walker into FileIR. quick stays extra-free. Host CLI is not overlay-ready. Default CI stays extra-free; a semantic job runs pytest -m semantic.
This commit is contained in:
+18
-1
@@ -20,6 +20,16 @@ dependencies = []
|
||||
harnessx = [
|
||||
"harnessx @ git+https://github.com/Darwin-Agent/HarnessX.git@274c512eea67c64701f992d3b6fe06f0fd590ef0",
|
||||
]
|
||||
# Structured parse for overlay (JS/C/C++/Java/Python). Core install stays empty.
|
||||
# Wheels are MIT; import is lazy via openultrasast.semantic.extra.
|
||||
semantic = [
|
||||
"tree-sitter>=0.23,<0.27",
|
||||
"tree-sitter-python>=0.23",
|
||||
"tree-sitter-javascript>=0.23",
|
||||
"tree-sitter-c>=0.23",
|
||||
"tree-sitter-cpp>=0.23",
|
||||
"tree-sitter-java>=0.23",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
ousast = "openultrasast.cli:main"
|
||||
@@ -27,7 +37,10 @@ ousast = "openultrasast.cli:main"
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
pythonpath = ["src"]
|
||||
markers = ["docker: requires a docker daemon"]
|
||||
markers = [
|
||||
"docker: requires a docker daemon",
|
||||
"semantic: requires openultrasast[semantic] tree-sitter extra",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 140
|
||||
@@ -55,6 +68,10 @@ warn_unused_configs = true
|
||||
module = "harnessx.*"
|
||||
ignore_missing_imports = true
|
||||
|
||||
[[tool.mypy.overrides]]
|
||||
module = "tree_sitter"
|
||||
ignore_missing_imports = true
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"dagger-io>=0.21.7",
|
||||
|
||||
Reference in New Issue
Block a user