Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update for tree sitter 0.22 with prebuilt wheels #46

Merged
merged 12 commits into from
May 15, 2024

Conversation

k4black
Copy link
Owner

@k4black k4black commented May 14, 2024

Py-Tree-Sitter in 0.22.0 introduced a breaking change - now languages are installed with pip install tree-sitter-python etc.

So refactor library to use this pre-built language wheels.

Closes #45

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 43.48%. Comparing base (8ddc5cf) to head (e0b4675).
Report is 1 commits behind head on main.

Files Patch % Lines
codebleu/utils.py 92.68% 3 Missing ⚠️
codebleu/syntax_match.py 77.77% 2 Missing ⚠️
codebleu/dataflow_match.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #46      +/-   ##
==========================================
+ Coverage   42.27%   43.48%   +1.20%     
==========================================
  Files          11       11              
  Lines        1696     1741      +45     
==========================================
+ Hits          717      757      +40     
- Misses        979      984       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@k4black k4black force-pushed the update-for-tree-sitter-0-22 branch from 65ddee8 to 82ef6b7 Compare May 14, 2024 20:59
@k4black k4black merged commit acd8217 into main May 15, 2024
20 checks passed
@k4black k4black deleted the update-for-tree-sitter-0-22 branch May 15, 2024 06:13
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.

tree_sitter.Language has no attribute 'build_library'
1 participant