Skip to content

Commit

Permalink
Fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Dec 5, 2024
1 parent 5cff5bc commit 4e2bb75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dojo/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def update_azure_groups(backend, uid, user=None, social=None, *args, **kwargs):


def is_group_id(group):
return bool(re.search("^[a-zA-Z0-9]{8,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{12,}$", group))
return bool(re.search(r"^[a-zA-Z0-9]{8,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{4,}-[a-zA-Z0-9]{12,}$", group))


def assign_user_to_groups(user, group_names, social_provider):
Expand Down
2 changes: 1 addition & 1 deletion dojo/tools/crashtest_security/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def get_items(self, tree, test):
title = re.sub(r" \([0-9]*\)$", "", title)

# Attache CVEs
vulnerability_id = re.findall("CVE-\\d{4}-\\d{4,10}", title)[0] if "CVE" in title else None
vulnerability_id = re.findall(r"CVE-\d{4}-\d{4,10}", title)[0] if "CVE" in title else None
description = failure.get("message")
severity = failure.get("type").capitalize()

Expand Down

0 comments on commit 4e2bb75

Please sign in to comment.