Skip to content

Navigation Menu

Sign in
Sign up

Add Python parser to support .py files - #26

Open
Nawaf-TBE wants to merge 5 commits into
CoderAgent:main from
Nawaf-TBE:feature/python-parser
Open

Add Python parser to support .py files #26
Nawaf-TBE wants to merge 5 commits into
CoderAgent:main from
Nawaf-TBE:feature/python-parser

Conversation

@Nawaf-TBE

@Nawaf-TBE Nawaf-TBE commented Nov 23, 2024

Copy link
Copy Markdown

This pull request adds support for parsing Python files as part of the SecureAgent project.

  • Implemented a PythonParser class using tree-sitter for Python AST parsing.
  • Integrated the parser into the EXTENSIONS_TO_PARSERS map in constants.ts.
  • The parser supports:
    • Syntax validation (dryRun method).
    • Extracting the largest enclosing context for a given range of lines (findEnclosingContext method).

This feature expands the review agent's capabilities to provide suggestions for Python files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /