Skip to content

Commit 5afcf42

Browse files
committed
Update API
1 parent b961fbe commit 5afcf42

File tree

14 files changed

+912
-909
lines changed

14 files changed

+912
-909
lines changed

.vscode/launch.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
],
1313
"console": "integratedTerminal",
1414
"justMyCode": false,
15-
"preLaunchTask": "pre-commit-install"
1615
}
1716
]
1817
}

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
},
1717
"python.defaultInterpreterPath": ".venv/bin/python",
1818
"python.languageServer": "Pylance",
19-
"python.analysis.autoSearchPaths": true,
20-
"python.analysis.autoImportCompletions": true,
19+
"python.analysis.languageServerMode": "full",
2120
"python.testing.pytestEnabled": true,
2221
"notebook.formatOnSave.enabled": true,
2322
"notebook.formatOnCellExecution": true,

.vscode/tasks.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

api/src/api/.env

Whitespace-only changes.

api/src/api/.env.Development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LoggingLevel="INFO"

api/src/api/.env.Local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LoggingLevel="INFO"

api/src/api/.env.Production

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LoggingLevel="CRITICAL"

api/src/api/.env.Staging

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LoggingLevel="INFO"

api/src/api/api_printer.py

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
from enum import StrEnum
3+
4+
5+
class ApplicationEnvironment(StrEnum):
6+
LOCAL = "Local"
7+
DEVELOPMENT = "Development"
8+
STAGING = "Staging"
9+
PRODUCTION = "Production"
10+
11+
@staticmethod
12+
def get_current() -> str:
13+
return os.getenv("COMMON__ENVIRONMENT", ApplicationEnvironment.LOCAL)

0 commit comments

Comments
 (0)