Skip to content

Commit

Permalink
fix: don't add space between string and comma [python3.12 f-string to…
Browse files Browse the repository at this point in the history
…kenize]
  • Loading branch information
mbhall88 committed Jan 9, 2024
1 parent b7e0e47 commit 18e9874
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snakefmt/parser/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def operator_skip_spacing(prev_token: Token, token: Token) -> bool:
return True
elif prev_token.type == tokenize.NAME and token.string == "(":
return True
elif prev_token.type == tokenize.STRING and token.string == ",":
return True
else:
return False

Expand Down

0 comments on commit 18e9874

Please sign in to comment.