Skip to content

Commit

Permalink
adjust update_envs to make sure that created files have LF line end…
Browse files Browse the repository at this point in the history
…ings (#455)
  • Loading branch information
ChristianZimpelmann committed Apr 9, 2023
1 parent 6d762a5 commit a770938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .envs/update_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def main():

# write environments
for name, env in zip(["linux", "others"], [test_env_linux, test_env_others]):
Path(f".envs/testenv-{name}.yml").write_text("\n".join(env) + "\n")
# Specify newline to avoid wrong line endings on Windows.
# See: https://stackoverflow.com/a/69869641
Path(f".envs/testenv-{name}.yml").write_text(
"\n".join(env) + "\n", newline="\n"
)


if __name__ == "__main__":
Expand Down

0 comments on commit a770938

Please sign in to comment.