Skip to content

feat: use tree-sitter to parse requirements.txt more correctly#391

Draft
Strum355 wants to merge 1 commit intoguacsec:mainfrom
Strum355:nsc/requirements-txt-treesitter
Draft

feat: use tree-sitter to parse requirements.txt more correctly#391
Strum355 wants to merge 1 commit intoguacsec:mainfrom
Strum355:nsc/requirements-txt-treesitter

Conversation

@Strum355
Copy link
Member

@Strum355 Strum355 commented Feb 26, 2026

Description

Replaced the original manual "parsing" of requirements.txt with a proper tree-sitter based approach. For more info on tree-sitter see https://tree-sitter.github.io/tree-sitter/

Related issues (if any): #242

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Tested this with https://github.com/fabric8-analytics/fabric8-analytics-vscode-extension, some changes required there will be included in the PR that bumps the version of this library too

@Strum355 Strum355 force-pushed the nsc/requirements-txt-treesitter branch 3 times, most recently from e29bf41 to cd46b6f Compare February 27, 2026 15:18
@Strum355 Strum355 force-pushed the nsc/requirements-txt-treesitter branch from cd46b6f to d906a56 Compare February 27, 2026 16:53
@Strum355 Strum355 changed the title wip feat: use tree-sitter to parse requirements.txt more correctly feat: use tree-sitter to parse requirements.txt more correctly Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Naive parsing of python's requirements.txt

1 participant