mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
update default .gitignore of new created scaffold project
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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