Skip to content

Commit 290bef8

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ab0c2ce commit 290bef8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

WrightTools/__version__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
with open(str(p)) as f:
3434
__branch__ = f.readline().rstrip().split(r"/")[-1]
3535
# clean local verson (PEP 440)
36-
__version__ += f"+{''.join(char if (char.isalnum() or char=='.') else '.' for char in __branch__)}"
36+
__version__ += (
37+
f"+{''.join(char if (char.isalnum() or char=='.') else '.' for char in __branch__)}"
38+
)
3739
else:
3840
__branch__ = None

0 commit comments

Comments
 (0)