Skip to content

Commit c4fdde9

Browse files
style improvements
1 parent f77241d commit c4fdde9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

acclimatise/model.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ def capital(self):
371371
)
372372

373373

374-
int_re = re.compile(r"\b((int(eger)?)|size|length|max|min|num(ber)?)\b", flags=re.IGNORECASE)
374+
int_re = re.compile(
375+
r"\b((int(eger)?)|size|length|max|min|num(ber)?)\b", flags=re.IGNORECASE
376+
)
375377
str_re = re.compile(r"\bstr(ing)?\b", flags=re.IGNORECASE)
376378
float_re = re.compile(r"\b(float|decimal)\b", flags=re.IGNORECASE)
377379
bool_re = re.compile(r"\bbool(ean)?\b", flags=re.IGNORECASE)
@@ -380,9 +382,11 @@ def capital(self):
380382
output_re = re.compile(r"output", flags=re.IGNORECASE)
381383
dir_re = re.compile(r"\b(folder|directory)\b", flags=re.IGNORECASE)
382384

383-
default_re = re.compile(r"default(?: value)?(?:[:=] ?| )([^ )\]]+)", flags=re.IGNORECASE)
384-
float_re = re.compile(r'[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)', flags=re.IGNORECASE)
385-
int_re = re.compile(r'[+-]?([0-9]+[^.0-9])', flags=re.IGNORECASE)
385+
default_re = re.compile(
386+
r"default(?: value)?(?:[:=] ?| )([^ )\]]+)", flags=re.IGNORECASE
387+
)
388+
float_re = re.compile(r"[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)", flags=re.IGNORECASE)
389+
int_re = re.compile(r"[+-]?([0-9]+[^.0-9])", flags=re.IGNORECASE)
386390

387391

388392
def infer_type(string) -> typing.Optional[cli_types.CliType]:

0 commit comments

Comments
 (0)