Skip to content

Commit

Permalink
Truncate file after replacing version. (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Mar 29, 2023
1 parent 4444cf0 commit 0d21db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions noxfile.py
Expand Up @@ -189,6 +189,7 @@ def _repl_version(session: nox.Session, new_version: str):
if line.startswith("version = "):
line = f'version = "{new_version}"\n'
fp.write(line)
fp.truncate()


def check_no_modifications(session: nox.Session) -> None:
Expand Down

0 comments on commit 0d21db4

Please sign in to comment.