From 35543af28a5beccbb79938fbec39e339e5f8339c Mon Sep 17 00:00:00 2001 From: w4ffl35 <25737761+w4ffl35@users.noreply.github.com> Date: Thu, 9 May 2024 08:07:00 -0600 Subject: [PATCH] add darklock lists bump defendatron and facehuggershield versions --- setup.py | 4 ++-- src/facehuggershield/huggingface/__init__.py | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 465f062..ea01439 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="facehuggershield", - version="0.1.8", + version="0.1.9", author="Capsize LLC", description="", long_description=open("README.md", "r", encoding="utf-8").read(), @@ -15,7 +15,7 @@ packages=find_packages("src"), python_requires=">=3.10.0", install_requires=[ - "defendatron==0.1.6", + "defendatron==0.1.7", ], dependency_links=[ ], diff --git a/src/facehuggershield/huggingface/__init__.py b/src/facehuggershield/huggingface/__init__.py index 371e9e2..6a4ad40 100644 --- a/src/facehuggershield/huggingface/__init__.py +++ b/src/facehuggershield/huggingface/__init__.py @@ -35,7 +35,14 @@ def activate( activate_shadowlogger=True, activate_darklock=True, activate_nullscream=True, - show_stdout=True + show_stdout=True, + + # darklock properites + darklock_os_whitelisted_operations: list = None, + darklock_os_whitelisted_filenames: list = None, + darklock_os_whitelisted_imports: list = None, + darklock_os_blacklisted_filenames: list = None, + darklock_os_whitelisted_directories: list = None, ): set_huggingface_environment_variables( allow_downloads=False, @@ -48,5 +55,10 @@ def activate( activate_shadowlogger=activate_shadowlogger, activate_darklock=activate_darklock, activate_nullscream=activate_nullscream, - show_stdout=show_stdout + show_stdout=show_stdout, + darklock_os_whitelisted_operations=darklock_os_whitelisted_operations, + darklock_os_whitelisted_filenames=darklock_os_whitelisted_filenames, + darklock_os_whitelisted_imports=darklock_os_whitelisted_imports, + darklock_os_blacklisted_filenames=darklock_os_blacklisted_filenames, + darklock_os_whitelisted_directories=darklock_os_whitelisted_directories, )