Skip to content

Commit

Permalink
Fix ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbens committed Sep 5, 2024
1 parent 7478f20 commit 6f31452
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def main() -> None:
# Check for patterns that match other patterns
for entry1 in json_data:
for entry2 in json_data:
if entry1 != entry2 and re.search(
entry1["pattern"], entry2["pattern"]
):
if entry1 != entry2 and re.search(entry1["pattern"], entry2["pattern"]):
raise ValueError(
"Pattern {!r} is a subset of {!r}".format(
entry2["pattern"], entry1["pattern"]
Expand Down

0 comments on commit 6f31452

Please sign in to comment.