-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add fastapi recipe. * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
03751a1
commit df62a45
Showing
39 changed files
with
15,513 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
.pytest_cache | ||
.coverage | ||
|
||
### vscode ### | ||
.vscode | ||
.env | ||
|
||
playground/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
// 使用 IntelliSense 了解相关属性。 | ||
// 悬停以查看现有属性的描述。 | ||
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: FastAPI", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": [ | ||
"--host", | ||
"0.0.0.0", | ||
"examples.web.fastapi.main:app", | ||
"--reload" | ||
], | ||
"jinja": true, | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
{ | ||
"name": "FastAPI: OpenAPI with Custom Static Files", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": [ | ||
"--host", | ||
"0.0.0.0", | ||
"examples.web.fastapi.main_openapi_static:app", | ||
"--reload" | ||
], | ||
"jinja": true, | ||
"cwd": "${workspaceFolder}", | ||
}, | ||
{ | ||
"name": "FastAPI: MongoDB", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "uvicorn", | ||
"args": [ | ||
"--host", | ||
"0.0.0.0", | ||
"examples.web.fastapi.main_mongodb:app", | ||
"--reload" | ||
], | ||
"jinja": true, | ||
"cwd": "${workspaceFolder}", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"files.exclude": { | ||
"**/__pycache__": true, | ||
"**/.mypy_cache": true | ||
}, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "explicit", | ||
"source.fixAll": "explicit" | ||
} | ||
}, | ||
"python.analysis.importFormat": "absolute", | ||
"python.analysis.typeCheckingMode": "basic", | ||
"black-formatter.args": [ | ||
"--line-length=88", | ||
"--skip-string-normalization" | ||
], | ||
"isort.args": [ | ||
"--profile=black" | ||
], | ||
"isort.severity": { | ||
"E": "Error" | ||
}, | ||
"pylint.args": [ | ||
"--load-plugins=pylint.extensions.bad_builtin,pylint_pydantic", | ||
"--ignore=CVS,.git,__pycache__,.mypy_cache,tests", | ||
"--disable=no-self-argument", | ||
], | ||
"python.testing.pytestEnabled": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.