-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #26
Changes from 10 commits
7a1b22f
36fef73
4d13da2
6b1698e
dee3d33
bb555bb
ad477a4
243be91
954cd15
ce2a59e
bfd5eaf
0a43759
22b8c7e
7033ce5
0fc4b76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,9 +1,10 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import os | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| import sys | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from functools import lru_cache | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from pydantic_settings import BaseSettings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from typing import List, Optional | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| from pydantic_settings import BaseSettings | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class Settings(BaseSettings): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| """Configuración de la aplicación optimizada para Railway""" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -18,9 +19,17 @@ class Settings(BaseSettings): | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| port: int = int(os.getenv("PORT", 8000)) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Environment Configuration | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hotfix/pipeline-isort-formatting-fix | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| environment: str = os.getenv( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "ENVIRONMENT", "development" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) # Default to development, not production | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| develop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| environment: str = os.getenv("ENVIRONMENT", "production") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| main | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| develop | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hotfix/pipeline-isort-formatting-fix | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production | |
| develop | |
| environment: str = os.getenv("ENVIRONMENT", "production") | |
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production | |
| main | |
| develop | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production | |
| develop | |
| environment: str = os.getenv("ENVIRONMENT", "production") | |
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production | |
| main | |
| develop | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production | |
| environment: str = os.getenv("ENVIRONMENT", "production") | |
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production | |
| develop | |
| environment: str = os.getenv("ENVIRONMENT", "production") | |
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production | |
| main | |
| develop | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production | |
| develop | |
| environment: str = os.getenv("ENVIRONMENT", "production") | |
| environment: str = os.getenv("ENVIRONMENT", "development") # Default to development, not production | |
| main | |
| develop | |
| environment: str = os.getenv( | |
| "ENVIRONMENT", "development" | |
| ) # Default to development, not production |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| develop |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| develop |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| hotfix/pipeline-isort-formatting-fix | |
| develop | |
| # Detectar si estamos en modo test | |
| is_testing = bool(os.getenv("PYTEST_CURRENT_TEST")) or "pytest" in os.getenv("_", "") | |
| # Validación de configuración crítica solo en producción (no en tests) | |
| if self.environment == "production" and not is_testing and not self.api_key: | |
| raise ValueError("API_KEY environment variable is required in production") | |
| # Si estamos en tests y no hay API_KEY, usar una de prueba | |
| if is_testing and not self.api_key: | |
| self.api_key = "test_secure_key_for_testing_only_not_production" | |
| develop |
Outdated
Copilot
AI
Jul 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Git merge conflict markers are present in the code. This line contains a branch name that should be removed as it will cause syntax errors.
| main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| import logging | ||
| import sys | ||
|
|
||
| from pythonjsonlogger import jsonlogger | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| from mangum import Mangum | ||
|
|
||
| from app.main import app | ||
|
|
||
| # Handler para AWS Lambda | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are conflicting environment default values in the code. Line 25 sets default to 'development' while line 28 sets it to 'production'. This creates ambiguity and potential configuration issues.