Skip to content

Commit 474fcce

Browse files
committed
Fix newlines in .pre-commit-config.yaml and requirements.txt isn't any longer required for Heroku
1 parent 4397073 commit 474fcce

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

hooks/post_gen_project.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,7 @@ def remove_utility_files():
8080

8181

8282
def remove_heroku_files():
83-
file_names = ["Procfile"]
84-
for file_name in file_names:
85-
if file_name == "requirements.txt" and "{{ cookiecutter.ci_tool }}".lower() == "travis":
86-
# Don't remove the file if we are using Travis CI but not using Heroku
87-
continue
88-
Path(file_name).unlink()
83+
Path("Procfile").unlink()
8984
shutil.rmtree("bin")
9085

9186

@@ -203,7 +198,7 @@ def remove_prettier_pre_commit():
203198

204199
def remove_repo_from_pre_commit_config(repo_to_remove: str):
205200
pre_commit_config = Path(".pre-commit-config.yaml")
206-
content = pre_commit_config.read_text().splitlines(keepends=True)
201+
content = pre_commit_config.read_text().splitlines()
207202

208203
removing = False
209204
new_lines = []

0 commit comments

Comments
 (0)