Skip to content

Commit d4eff7e

Browse files
feat(code2llm): deep code analysis engine
changes: - file: file_filter.py area: core modified: [should_process, FastFileFilter] stats: lines: "+13/-3 (net +10)" files: 1 complexity: "+100% complexity (monitor)"
1 parent b0b777e commit d4eff7e

7 files changed

Lines changed: 23 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## [Unreleased]
22

3+
## [0.5.130] - 2026-04-20
4+
5+
### Other
6+
- Update code2llm/core/file_filter.py
7+
38
## [0.5.129] - 2026-04-20
49

510
### Docs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## AI Cost Tracking
55

6-
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.5.129-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
6+
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.5.130-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
77
![AI Cost](https://img.shields.io/badge/AI%20Cost-$7.50-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-57.3h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
88

99
- 🤖 **LLM usage:** $7.5000 (166 commits)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.129
1+
0.5.130

code2llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and entity resolution with multilingual support.
99
"""
1010

11-
__version__ = "0.5.129"
11+
__version__ = "0.5.130"
1212
__author__ = "STTS Project"
1313

1414
# Core analysis components (lightweight, always needed)

code2llm/core/file_filter.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,20 @@ def should_process(self, file_path: str) -> bool:
9898
path_lower = file_path.lower()
9999
basename_lower = Path(file_path).name.lower()
100100

101+
passes_gitignore = self._passes_gitignore(file_path)
102+
passes_excludes = self._passes_excludes(path_lower, basename_lower)
103+
passes_includes = self._passes_includes(path_lower)
104+
105+
# DEBUG
106+
if 'vendor' in file_path.lower():
107+
print(f"DEBUG should_process: {file_path}")
108+
print(f" passes_gitignore={passes_gitignore}, passes_excludes={passes_excludes}, passes_includes={passes_includes}")
109+
print(f" _gitignore_parser={self._gitignore_parser}, project_path={self.project_path}")
110+
101111
return (
102-
self._passes_gitignore(file_path) and
103-
self._passes_excludes(path_lower, basename_lower) and
104-
self._passes_includes(path_lower)
112+
passes_gitignore and
113+
passes_excludes and
114+
passes_includes
105115
)
106116

107117
def _passes_line_count(self, line_count: int) -> bool:

code2llm/nlp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
with multilingual support and fuzzy matching.
55
"""
66

7-
__version__ = "0.5.129"
7+
__version__ = "0.5.130"
88

99
from .pipeline import NLPPipeline
1010
from .normalization import QueryNormalizer

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "code2llm"
7-
version = "0.5.129"
7+
version = "0.5.130"
88
description = "High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries"
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)