Skip to content

fully replace self-compiled YARA with yara-python#1475

Open
jstucke wants to merge 7 commits into
masterfrom
pypi-yara
Open

fully replace self-compiled YARA with yara-python#1475
jstucke wants to merge 7 commits into
masterfrom
pypi-yara

Conversation

@jstucke
Copy link
Copy Markdown
Collaborator

@jstucke jstucke commented Apr 29, 2026

Goal: fully replace CLI YARA calls with the yara-python module
Changes:

  • introduces a new helperFunctions.yara module with YARA-related common functions
  • software_components: replaces the no_text_file yara signature with a meta entry and uses the file_type plugin as a dependency
  • changed various modules to use yara-python/helperFunctions.yara:
    • yara_binary_search
    • extract_os_names
    • yara_signature_testing
    • compile_yara_signatures

@jstucke jstucke self-assigned this Apr 29, 2026
@jstucke jstucke force-pushed the pypi-yara branch 3 times, most recently from 1b0f9d6 to 787f8e9 Compare May 5, 2026 11:34
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 5, 2026

Codecov Report

❌ Patch coverage is 96.05735% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.47%. Comparing base (31bfb8f) to head (1978c4c).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/helperFunctions/yara.py 96.47% 3 Missing ⚠️
src/test/unit/helperFunctions/test_yara.py 96.20% 3 Missing ⚠️
src/helperFunctions/yara_binary_search.py 92.00% 2 Missing ⚠️
src/test/yara_signature_testing.py 90.90% 2 Missing ⚠️
...s/software_components/internal/extract_os_names.py 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1475      +/-   ##
==========================================
+ Coverage   92.41%   92.47%   +0.06%     
==========================================
  Files         370      371       +1     
  Lines       20847    20915      +68     
==========================================
+ Hits        19266    19342      +76     
+ Misses       1581     1573       -8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants