Skip to content

Commit

Permalink
style: consisten use of f-strings
Browse files Browse the repository at this point in the history
Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
  • Loading branch information
Silvanoc committed Nov 8, 2023
1 parent 38c4be2 commit d45970a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions linkml_runtime/utils/uri_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,17 +324,17 @@
#
### Compile the regular expressions for better performance

uri_validator = re.compile("^{}$".format(URI), re.VERBOSE)
uri_validator = re.compile(f"^{URI}$", re.VERBOSE)

#uri_ref_validator = re.compile("^{}$".format(URI_reference), re.VERBOSE)
#uri_ref_validator = re.compile(f"^{URI_reference}$", re.VERBOSE)

uri_relative_ref_validator = re.compile("^{}$".format(relative_ref), re.VERBOSE)
uri_relative_ref_validator = re.compile(f"^{relative_ref}$", re.VERBOSE)

abs_uri_validator = re.compile("^{}$".format(absolute_URI), re.VERBOSE)
abs_uri_validator = re.compile(f"^{absolute_URI}$", re.VERBOSE)

curie_validator = re.compile("^{}$".format(CURIE), re.VERBOSE)
curie_validator = re.compile(f"^{CURIE}$", re.VERBOSE)

safe_curie_validator = re.compile("^{}$".format(safe_CURIE), re.VERBOSE)
safe_curie_validator = re.compile(f"^{safe_CURIE}$", re.VERBOSE)

# -----------------------------------------------------------------------------
#
Expand Down

0 comments on commit d45970a

Please sign in to comment.