chopratejas commited on
Commit
7749044
·
1 Parent(s): a929f70

Fix CI test, bump to 0.5.7

Browse files

- test_nested_functions: guard syntax_valid assert behind
is_tree_sitter_available() (CI doesn't have tree-sitter)
- Bump version to 0.5.7

headroom/__init__.py CHANGED
@@ -153,7 +153,7 @@ from .transforms import (
153
  TransformPipeline,
154
  )
155
 
156
- __version__ = "0.5.6"
157
 
158
  __all__ = [
159
  # Main client
 
153
  TransformPipeline,
154
  )
155
 
156
+ __version__ = "0.5.7"
157
 
158
  __all__ = [
159
  # Main client
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
 
5
  [project]
6
  name = "headroom-ai"
7
- version = "0.5.6"
8
  description = "The Context Optimization Layer for LLM Applications - Cut costs by 50-90%"
9
  readme = "README.md"
10
  license = "Apache-2.0"
 
4
 
5
  [project]
6
  name = "headroom-ai"
7
+ version = "0.5.7"
8
  description = "The Context Optimization Layer for LLM Applications - Cut costs by 50-90%"
9
  readme = "README.md"
10
  license = "Apache-2.0"
tests/test_transforms/test_code_compressor.py CHANGED
@@ -645,7 +645,9 @@ def outer():
645
  result = compressor.compress(code)
646
 
647
  assert result is not None
648
- assert result.syntax_valid is True
 
 
649
 
650
  def test_syntax_errors_in_input(self, default_config):
651
  """Syntax errors in input don't crash the compressor."""
 
645
  result = compressor.compress(code)
646
 
647
  assert result is not None
648
+ # syntax_valid requires tree-sitter; without it, validation is skipped
649
+ if is_tree_sitter_available():
650
+ assert result.syntax_valid is True
651
 
652
  def test_syntax_errors_in_input(self, default_config):
653
  """Syntax errors in input don't crash the compressor."""