Skip to content

Commit 7a66f0d

Browse files
committed
lint fix
1 parent 07a4def commit 7a66f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guardrails/validators/competitor_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
register_validator,
1111
)
1212

13-
1413
try:
1514
import nltk # type: ignore
1615
except ImportError:
@@ -21,12 +20,13 @@
2120
nltk.data.find("tokenizers/punkt")
2221
except LookupError:
2322
nltk.download("punkt")
24-
23+
2524
try:
2625
import spacy
2726
except ImportError:
2827
spacy = None
2928

29+
3030
@register_validator(name="competitor-check", data_type="string")
3131
class CompetitorCheck(Validator):
3232
"""Validates that LLM-generated text is not naming any competitors from a

0 commit comments

Comments
 (0)