update default .gitignore of new created scaffold project

This commit is contained in:
debugtalk
2019-06-25 16:18:57 +08:00
parent 7fc3280584
commit d7121132a7
2 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,10 @@
## 2.2.1 (2019-06-25)
**Features**
- update default `.gitignore` of new created scaffold project
**Bugfixes**
- fix extend with testcase reference in format version 2

View File

@@ -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)