Skip to content

Test all dangerous functions and fix check of os.system #911

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

Merged

Conversation

albertvillanova
Copy link
Member

@albertvillanova albertvillanova commented Mar 7, 2025

Test all dangerous functions and fix check of dangerous function os.system:

  • test all dangerous functions, so we avoid issues like:
  • fix check of dangerous function os.system:
    • this issue was found thanks to the test above
    • the module name of this function is posix instead of os
In [1]: import os

In [2]: os.system.__module__
Out[2]: 'posix'

@albertvillanova albertvillanova changed the title Test all dangerous functions and fix check of dangerous function os.system Test all dangerous functions and fix check of os.system Mar 7, 2025
@albertvillanova albertvillanova merged commit e51d82a into huggingface:main Mar 10, 2025
3 checks passed
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