mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 10:09:31 +08:00
update default .gitignore of new created scaffold project
This commit is contained in:
@@ -432,7 +432,14 @@ def create_scaffold(project_name):
|
||||
|
||||
# create .gitignore file
|
||||
ignore_file = os.path.join(project_name, ".gitignore")
|
||||
ignore_content = ".env\nreports/*"
|
||||
ignore_content = "\n".join([
|
||||
".env",
|
||||
"reports/*",
|
||||
"__pycache__/*",
|
||||
"*.pyc",
|
||||
".python-version",
|
||||
"logs/*"
|
||||
])
|
||||
with open(ignore_file, "w") as f:
|
||||
f.write(ignore_content)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user