mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
Fix CI test, bump to 0.5.7
- test_nested_functions: guard syntax_valid assert behind is_tree_sitter_available() (CI doesn't have tree-sitter) - Bump version to 0.5.7
This commit is contained in:
parent
3b4727e490
commit
72eebd4fe6
3 changed files with 5 additions and 3 deletions
|
|
@ -153,7 +153,7 @@ from .transforms import (
|
|||
TransformPipeline,
|
||||
)
|
||||
|
||||
__version__ = "0.5.6"
|
||||
__version__ = "0.5.7"
|
||||
|
||||
__all__ = [
|
||||
# Main client
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "headroom-ai"
|
||||
version = "0.5.6"
|
||||
version = "0.5.7"
|
||||
description = "The Context Optimization Layer for LLM Applications - Cut costs by 50-90%"
|
||||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
|
|
|
|||
|
|
@ -645,7 +645,9 @@ def outer():
|
|||
result = compressor.compress(code)
|
||||
|
||||
assert result is not None
|
||||
assert result.syntax_valid is True
|
||||
# syntax_valid requires tree-sitter; without it, validation is skipped
|
||||
if is_tree_sitter_available():
|
||||
assert result.syntax_valid is True
|
||||
|
||||
def test_syntax_errors_in_input(self, default_config):
|
||||
"""Syntax errors in input don't crash the compressor."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue