mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
update vscode settings
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
5739fe06d3
commit
6756690401
3 changed files with 20 additions and 9 deletions
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
|
@ -3,7 +3,7 @@
|
|||
"configurations": [
|
||||
{
|
||||
"name": "Python: 現在のファイル",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
},
|
||||
{
|
||||
"name": "build",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "tools/build.py",
|
||||
"console": "integratedTerminal",
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
{
|
||||
"name": "test",
|
||||
"type": "python",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "test/python/test_serialize.py",
|
||||
"console": "integratedTerminal",
|
||||
|
|
|
|||
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
|
|
@ -5,5 +5,15 @@
|
|||
"yaml.hover": true,
|
||||
"yaml.schemas": {
|
||||
"https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json": "src/**/*.yaml"
|
||||
},
|
||||
"[yaml]": {
|
||||
"editor.defaultFormatter": "redhat.vscode-yaml"
|
||||
},
|
||||
// "python.analysis.typeCheckingMode": "basic",
|
||||
"[python]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": "explicit",
|
||||
"source.fixAll": "explicit",
|
||||
},
|
||||
}
|
||||
}
|
||||
9
.vscode/tasks.json
vendored
9
.vscode/tasks.json
vendored
|
|
@ -8,7 +8,7 @@
|
|||
"command": [
|
||||
"source .venv/bin/activate;",
|
||||
"python3 tools/build.py;",
|
||||
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
||||
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python-pydantic-v1;",
|
||||
"python3 test/python/replace.py;",
|
||||
"python3 -m pip install ./python_generated;"
|
||||
]
|
||||
|
|
@ -17,7 +17,8 @@
|
|||
"command": [
|
||||
".venv/Scripts/activate;",
|
||||
"python tools/build.py;",
|
||||
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
|
||||
"scoop reset temurin11-jdk;",
|
||||
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python-pydantic-v1;",
|
||||
"python test/python/replace.py;",
|
||||
"python -m pip install ./python_generated;"
|
||||
]
|
||||
|
|
@ -33,14 +34,14 @@
|
|||
"command": [
|
||||
"python3 -m venv .venv;",
|
||||
".venv/bin/python3 -m pip install -r requirements.txt;",
|
||||
"wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.1.0/openapi-generator-cli-7.1.0.jar -O openapi-generator-cli.jar;"
|
||||
"wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -O openapi-generator-cli.jar;"
|
||||
]
|
||||
},
|
||||
"windows": {
|
||||
"command": [
|
||||
"python -m venv .venv;",
|
||||
".venv/Scripts/python -m pip install -r requirements.txt;",
|
||||
"Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.1.0/openapi-generator-cli-7.1.0.jar -OutFile openapi-generator-cli.jar;"
|
||||
"Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.2.0/openapi-generator-cli-7.2.0.jar -OutFile openapi-generator-cli.jar;"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue