Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Valdes committed Jan 20, 2025
1 parent de9494a commit 46e08b2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
2 changes: 1 addition & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Settings(BaseSettings):
"""Settings"""

API_BASE_URL: str = get_secret("api_base_url")
API_TIMEOUT: str = get_secret("api_timeout")
API_TIMEOUT: int = int(get_secret("api_timeout"))
BASE_URL: str = get_secret("base_url")
SALT: str = get_secret("salt")
SECRET_KEY: str = get_secret("secret_key")
Expand Down
3 changes: 2 additions & 1 deletion pagos_cliente/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from flask import Flask

from config.settings import Settings
from pagos_cliente.blueprints.avisos.views import avisos
from pagos_cliente.blueprints.carros.views import carros
from pagos_cliente.blueprints.resultados.views import resultados
Expand All @@ -18,7 +19,7 @@ def create_app():
app = Flask(__name__)

# Cargar la configuración
app.config.from_object("config.settings")
app.config.from_object(Settings())

# Registrar blueprints
app.register_blueprint(carros)
Expand Down
27 changes: 12 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,35 +1,32 @@
[tool.poetry]
name = "pjecz-pagos-cliente-flask"
version = "2.2.1"
version = "2.0.0"
description = "Front-End del Portal de Pagos hecho con Flask."
authors = ["Guillermo Valdes <[email protected]>"]
license = "AGPL3"
readme = "README.md"
package-mode = false

[tool.poetry.dependencies]
python = "^3.11"
flask = "^3.0.3"
flask-wtf = "^1.2.1"
flask = "^3.1.0"
flask-wtf = "^1.2.2"
google-auth = "^2.37.0"
google-cloud = "^0.34.0"
google-cloud-secret-manager = "^2.20.2"
google-cloud-secret-manager = "^2.22.1"
hashids = "^1.3.1"
jinja2 = "^3.1.4"
pydantic = "^2.8.2"
pydantic-settings = "^2.4.0"
jinja2 = "^3.1.5"
pydantic = "^2.10.5"
pydantic-settings = "^2.7.1"
python-dotenv = "^1.0.1"
unidecode = "^1.3.8"


[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
black = "^24.10.0"
isort = "^5.13.2"
pylint = "^3.2.6"
pytest = "^8.3.2"
pre-commit = "^3.8.0"

[tool.poetry.requires-plugins]
poetry-plugin-export = ">=1.8"
pylint = "^3.3.3"
pytest = "^8.3.4"
pre-commit = "^4.0.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 46e08b2

Please sign in to comment.