-
-
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.
- Loading branch information
Showing
191 changed files
with
5,941 additions
and
7,478 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
This file was deleted.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
{ | ||
"recommendations": [ | ||
"mikestead.dotenv", | ||
"christian-kohler.path-intellisense", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"charliermarsh.ruff", | ||
"ms-python.mypy-type-checker" | ||
] | ||
"recommendations": [ | ||
"mikestead.dotenv", | ||
"christian-kohler.path-intellisense", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"charliermarsh.ruff", | ||
"ms-python.mypy-type-checker", | ||
"njpwerner.autodocstring", | ||
"samuelcolvin.jinjahtml", | ||
"formulahendry.code-runner", | ||
"editorconfig.editorconfig", | ||
"irongeek.vscode-env", | ||
"dbaeumer.vscode-eslint", | ||
"xyz.plsql-language", | ||
"davidanson.vscode-markdownlint", | ||
"bradlc.vscode-tailwindcss", | ||
"esbenp.prettier-vscode", | ||
"ms-python.pylint" | ||
] | ||
} |
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,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"pythonArgs": ["-Xfrozen_modules=off"], | ||
"configurations": [ | ||
{ | ||
"name": "Litestar Run", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "litestar", | ||
"envFile": "${workspaceFolder}/.env", | ||
"args": ["--app-dir", "${workspaceFolder}/", "--app", "app.asgi:create_app", "run", "--port", "8088", "--web-concurrency", "1"], | ||
"justMyCode": false, | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
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,122 @@ | ||
{ | ||
"files.exclude": { | ||
"**/._*": true, | ||
"**/*.pyc": { | ||
"when": "$(basename).py" | ||
}, | ||
".coverage.*": true, | ||
".mypy_cache": true, | ||
"**/__pycache__": true, | ||
".venv": true, | ||
".direnv": true, | ||
".idea": true, | ||
".run": true, | ||
".pytest_cache": true, | ||
".cache": true, | ||
".dist": true, | ||
"**/.pytest_cache": true, | ||
"site": true, | ||
".angular": true, | ||
".ruff_cache": true, | ||
".astro": true, | ||
".unasyncd_cache": true, | ||
".coverage": true, | ||
"node_modules": true, | ||
".terraform": true, | ||
".logfire": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/.git/objects/**": true, | ||
"**/.git/subtree-cache/**": true, | ||
"**/node_modules/*/**": true, | ||
"**/.direnv/**/*": true, | ||
"**/.venv/**/*": true, | ||
"app/domain/web/public/**/*": true | ||
}, | ||
"ruff.format.args": ["--config=${workspaceFolder}/pyproject.toml"], | ||
"ruff.lint.run": "onType", | ||
"ruff.lint.args": ["--config=${workspaceFolder}/pyproject.toml"], | ||
"mypy-type-checker.importStrategy": "fromEnvironment", | ||
"black-formatter.importStrategy": "fromEnvironment", | ||
"pylint.importStrategy": "fromEnvironment", | ||
"pylint.args": ["--rcfile=pylintrc"], | ||
"python.autoComplete.extraPaths": ["${workspaceFolder}"], | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.terminal.executeInFileDir": true, | ||
"python.testing.pytestEnabled": true, | ||
"autoDocstring.guessTypes": false, | ||
"python.analysis.autoImportCompletions": true, | ||
"python.analysis.autoFormatStrings": true, | ||
"editor.formatOnSave": true, | ||
"notebook.formatOnSave.enabled": true, | ||
"black-formatter.args": ["--line-length=120"], | ||
"evenBetterToml.formatter.reorderKeys": true, | ||
"evenBetterToml.formatter.trailingNewline": true, | ||
"evenBetterToml.formatter.columnWidth": 120, | ||
"evenBetterToml.formatter.arrayAutoCollapse": true, | ||
"python.globalModuleInstallation": false, | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.autoTestDiscoverOnSaveEnabled": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.ruff": "explicit", | ||
"source.organizeImports.ruff": "explicit" | ||
}, | ||
"[python]": { | ||
"editor.formatOnSave": true, | ||
"editor.formatOnSaveMode": "file", | ||
"editor.insertSpaces": true, | ||
"editor.tabSize": 4, | ||
"editor.trimAutoWhitespace": true, | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit", | ||
"source.organizeImports": "explicit" | ||
} | ||
}, | ||
"python.analysis.fixAll": ["source.unusedImports", "source.convertImportFormat"], | ||
"sqltools.disableReleaseNotifications": true, | ||
"sqltools.disableNodeDetectNotifications": true, | ||
"python.testing.unittestArgs": ["-v", "-s", "./tests", "-p", "test_*.py"], | ||
"python.testing.pytestArgs": ["tests"], | ||
"explorer.fileNesting.patterns": { | ||
"pyproject.toml": "pyproject.toml,poetry.lock,poetry.toml,mkdocs.yaml,.gcloudignore,.gitignore,.editorconfig,.bumpversion.cfg,.pylintrc,.pre-commit-config.yaml,LICENSE,mkdocs.yml,service_account.json,.pdm-python,pdm.lock,uv.lock,requirements.txt,sonar-project.properties,railway.json", | ||
".env": ".env*,.*.env", | ||
"docker-compose.yml": "docker-compose.yml, .dockerignore, docker-compose.*.yml, docker-compose.*.yaml", | ||
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, tsconfig.*.json, tsconfig.json, .stylelintrc.json,angular.json,proxy.conf.json,cypress.*.ts,extra-webpack*.cjs,.eslintrc.json, tailwind.config.*, vite.config.ts, postcss.config.*, components.json, .prettierignore, .prettierrc.json, .eslintrc.cjs" | ||
}, | ||
"markdownlint.run": "onSave", | ||
"markdownlint.config": { | ||
"default": true, | ||
"MD046": { | ||
"style": "fenced" | ||
}, | ||
"MD007": { | ||
"indent": 4 | ||
}, | ||
"no-hard-tabs": false | ||
}, | ||
"yaml.schemas": { | ||
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" | ||
}, | ||
"yaml.customTags": [ | ||
"!ENV scalar", | ||
"!ENV sequence", | ||
"!relative scalar", | ||
"tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg", | ||
"tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji", | ||
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format" | ||
], | ||
"mypy-type-checker.preferDaemon": true, | ||
"mypy-type-checker.reportingScope": "file", | ||
"editor.defaultFormatter": "charliermarsh.ruff", | ||
"notebook.defaultFormatter": "charliermarsh.ruff", | ||
"python.analysis.regenerateStdLibIndices": true, | ||
"python.analysis.typeEvaluation.deprecateTypingAliases": true, | ||
"python.analysis.typeEvaluation.enableExperimentalFeatures": true, | ||
"python.analysis.typeEvaluation.enableReachabilityAnalysis": true, | ||
"python.analysis.typeEvaluation.strictListInference": true, | ||
"python.analysis.typeEvaluation.strictDictionaryInference": true, | ||
"python.analysis.typeEvaluation.strictSetInference": false, | ||
"editor.defaultFoldingRangeProvider": "charliermarsh.ruff", | ||
"python.analysis.enableSyncServer": 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
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,12 @@ | ||
"""Metadata for the Project.""" | ||
|
||
from __future__ import annotations | ||
|
||
import importlib.metadata | ||
|
||
__all__ = ["__version__", "__project__"] | ||
|
||
__version__ = importlib.metadata.version("app") | ||
"""Version of the project.""" | ||
__project__ = importlib.metadata.metadata("app")["Name"] | ||
"""Name of the project.""" |
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,16 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from litestar import Litestar | ||
|
||
|
||
def create_app() -> Litestar: | ||
"""Create ASGI application.""" | ||
|
||
from litestar import Litestar | ||
|
||
from app.server import plugins | ||
|
||
return Litestar(plugins=[plugins.app_core]) |
Oops, something went wrong.