Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
leondz committed Jul 4, 2024
1 parent 24a4efb commit 9bd86a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions garak/probes/atkgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Tox(Probe):
def probe(self, generator) -> List[garak.attempt.Attempt]:
output_is_conversation = _config.system.verbose >= 2

if self.redteamer == None:
if self.redteamer is None:

print(
"🔴🪖 ", end=""
Expand Down Expand Up @@ -103,10 +103,10 @@ def probe(self, generator) -> List[garak.attempt.Attempt]:
turns = []
logging.debug("atkgen: attempt %s uuid %s", i, this_attempt.uuid)

if output_is_conversation:
print("atkgen: 🆕 ⋅.˳˳.⋅ॱ˙˙ॱ New conversation ॱ˙˙ॱ⋅.˳˳.⋅ 🗣️")
else:
if not output_is_conversation:
t = tqdm(total=2 * self.max_calls, leave=False)
else:
print("atkgen: 🆕 ⋅.˳˳.⋅ॱ˙˙ॱ New conversation ॱ˙˙ॱ⋅.˳˳.⋅ 🗣️")

while calls_made < self.max_calls and keep_going:
if not output_is_conversation:
Expand Down
2 changes: 0 additions & 2 deletions tests/probes/test_probes_atkgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import tempfile

import pytest

import garak._config
import garak._plugins
import garak.attempt
Expand Down

0 comments on commit 9bd86a4

Please sign in to comment.