Skip to content

Commit

Permalink
add darklock lists
Browse files Browse the repository at this point in the history
bump defendatron and facehuggershield versions
  • Loading branch information
w4ffl35 committed May 9, 2024
1 parent d316683 commit 35543af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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=[
],
Expand Down
16 changes: 14 additions & 2 deletions src/facehuggershield/huggingface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
)

0 comments on commit 35543af

Please sign in to comment.