Skip to content

feat(deps): remove magic dependency#305

Merged
luabida merged 2 commits into
AlertaDengue:mainfrom
luabida:remove-magic-dep
Jul 13, 2026
Merged

feat(deps): remove magic dependency#305
luabida merged 2 commits into
AlertaDengue:mainfrom
luabida:remove-magic-dep

Conversation

@luabida

@luabida luabida commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Python Magic is very good for handling an enormous amount of file extensions, but he caveat is that it is tricky when installing on windows and causes unnecessary dependency errors on other archs. therefore, Im removing the MIME detection via C magic and read the headers of the files instead

@luabida luabida force-pushed the remove-magic-dep branch 2 times, most recently from 968fa1c to c86a76a Compare July 13, 2026 16:26
@codecov-commenter

codecov-commenter commented Jul 13, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 94.69880% with 22 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@e94d123). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pysus/api/extensions.py 87.50% 22 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage        ?   97.84%           
=======================================
  Files           ?       49           
  Lines           ?     8499           
  Branches        ?        0           
=======================================
  Hits            ?     8316           
  Misses          ?      183           
  Partials        ?        0           

☔ View full report in Codecov by Harness.
📢 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.

@luabida luabida force-pushed the remove-magic-dep branch from c86a76a to c8061f7 Compare July 13, 2026 16:58
@luabida luabida merged commit 289ec97 into AlertaDengue:main Jul 13, 2026
14 checks passed
@luabida luabida deleted the remove-magic-dep branch July 13, 2026 17:02
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants