feat: added initial config

This commit is contained in:
2024-10-10 15:51:41 +02:00
parent 86e82a4d94
commit 5e990a615e
26 changed files with 694 additions and 4 deletions

35
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": ["app.main:app", "--reload", "--port", "9000"],
"jinja": true,
"justMyCode": true,
"env": {
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
}
},
{
"name": "Migrate",
"type": "python",
"request": "launch",
"module": "alembic",
"args": ["upgrade", "head"],
"jinja": true,
"justMyCode": true
},
{
"name": "Make Migrations",
"type": "python",
"request": "launch",
"module": "alembic",
"args": ["revision", "--autogenerate"],
"jinja": true,
"justMyCode": true
}
]
}

42
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,42 @@
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python3",
"python.globalModuleInstallation": false,
"python.terminal.activateEnvironment": true,
"python.analysis.typeCheckingMode": "basic",
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "ms-python.black-formatter"
},
"black-formatter.args": ["--line-length", "100"],
"isort.args": ["--profile", "black"],
// Editor General
"files.insertFinalNewline": true,
"editor.fontSize": 15,
"editor.formatOnSave": true,
"editor.rulers": [100],
"editor.minimap.enabled": true,
"files.exclude": {
"**/.git": true,
"**/.pytest_cache": true,
"**/.venv": true,
"**/.svn": true,
"**/.hg": true,
"**/db.sqlite3": true,
"**/.DS_Store": true,
"**/*.pyc": true,
"**/__pycache__/": true
},
"search.exclude": {
"**/.git": true,
"**/.venv": true,
"**/tmp": true,
"htmlcov/*": true,
"docs/*": true,
".venv/*": true
},
"python.testing.pytestArgs": ["app"],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}