mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 08:19:45 +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)
|
## 2.2.1 (2019-06-25)
|
||||||
|
|
||||||
|
**Features**
|
||||||
|
|
||||||
|
- update default `.gitignore` of new created scaffold project
|
||||||
|
|
||||||
**Bugfixes**
|
**Bugfixes**
|
||||||
|
|
||||||
- fix extend with testcase reference in format version 2
|
- fix extend with testcase reference in format version 2
|
||||||
|
|||||||
@@ -432,7 +432,14 @@ def create_scaffold(project_name):
|
|||||||
|
|
||||||
# create .gitignore file
|
# create .gitignore file
|
||||||
ignore_file = os.path.join(project_name, ".gitignore")
|
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:
|
with open(ignore_file, "w") as f:
|
||||||
f.write(ignore_content)
|
f.write(ignore_content)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user