Skip to content

Commit 9a4fb05

Browse files
committed
fix(pc):
1 parent 3e2df49 commit 9a4fb05

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
args: [--py311-plus]
1010

1111
- repo: https://github.com/psf/black
12-
rev: 23.11.0
12+
rev: 25.11.0
1313
hooks:
1414
- id: black
1515
language_version: python3.11
@@ -21,11 +21,11 @@ repos:
2121
language_version: python3.11
2222
additional_dependencies: [flake8-docstrings]
2323

24-
- repo: https://github.com/PyCQA/isort
25-
rev: 7.0.0
26-
hooks:
27-
- id: isort
28-
args: [--profile, black]
24+
# - repo: https://github.com/PyCQA/isort
25+
# rev: 7.0.0
26+
# hooks:
27+
# - id: isort
28+
# args: [--profile, black]
2929

3030
- repo: https://github.com/pre-commit/pre-commit-hooks
3131
rev: v4.5.0

agentic_security/agents/operator_crew.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ async def run_crew():
246246
os.environ["OPENAI_API_KEY"] = os.environ.get(
247247
"DEEPSEEK_API_KEY", ""
248248
) # CrewAI uses OPENAI_API_KEY
249-
os.environ[
250-
"OPENAI_MODEL_NAME"
251-
] = "deepseek:chat" # Specify DeepSeek model (adjust if needed)
249+
os.environ["OPENAI_MODEL_NAME"] = (
250+
"deepseek:chat" # Specify DeepSeek model (adjust if needed)
251+
)
252252

253253
if __name__ == "__main__":
254254
asyncio.run(run_crew())

agentic_security/integrations/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
class IntegrationProto(Protocol):
66
def __init__(
77
self, prompt_groups: list, tools_inbox: asyncio.Queue, opts: dict = {}
8-
):
9-
...
8+
): ...
109

11-
async def apply(self) -> list:
12-
...
10+
async def apply(self) -> list: ...

agentic_security/logutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def time_execution_async(
129129
[Callable[P, Coroutine[Any, Any, R]]], Callable[P, Coroutine[Any, Any, R]]
130130
]:
131131
def decorator(
132-
func: Callable[P, Coroutine[Any, Any, R]]
132+
func: Callable[P, Coroutine[Any, Any, R]],
133133
) -> Callable[P, Coroutine[Any, Any, R]]:
134134
@wraps(func)
135135
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:

agentic_security/probe_data/modules/rl_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ def update_rewards(
121121
current_prompt: str,
122122
reward: float,
123123
passed_guard: bool,
124-
) -> None:
125-
...
124+
) -> None: ...
126125

127126

128127
class QLearningPromptSelector(PromptSelectionInterface):

0 commit comments

Comments
 (0)