Skip to content

Commit

Permalink
ENH: remove final newline
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Nov 29, 2023
1 parent e2c3ddf commit 18e3bee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/repoma/utilities/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def write_pyproject(
tomlkit.dump(config, target, sort_keys=True)
elif isinstance(target, (Path, str)):
src = tomlkit.dumps(config, sort_keys=True)
src = f"{src.strip()}\n"
with open(target, "w") as stream:
stream.write(src)

Check warning on line 150 in src/repoma/utilities/pyproject.py

View check run for this annotation

Codecov / codecov/patch

src/repoma/utilities/pyproject.py#L147-L150

Added lines #L147 - L150 were not covered by tests
else:
Expand Down

0 comments on commit 18e3bee

Please sign in to comment.