From 01e0f880268aa9c2c70e3fb16ac26b43a85ade73 Mon Sep 17 00:00:00 2001 From: David Andersson <51036209+jdkandersson@users.noreply.github.com> Date: Tue, 1 Oct 2024 18:58:13 +1000 Subject: [PATCH] Bump version to 1.3.0 (#51) * Bump version to 1.3.0 * fix linting issues --- paas_app_charmer/framework.py | 5 +++-- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/paas_app_charmer/framework.py b/paas_app_charmer/framework.py index 6799bf5..eca4bfe 100644 --- a/paas_app_charmer/framework.py +++ b/paas_app_charmer/framework.py @@ -25,9 +25,10 @@ def secret_key_id(cls, data: dict[str, str | int | bool | dict[str, str] | None] ValueError: if the *-secret-key-id is invalid. NotImplementedError: ill-formed subclasses. """ - secret_key_field = "secret_key" + # Bandit thinks the following are secrets which they are not + secret_key_field = "secret_key" # nosec B105 if secret_key_field not in cls.model_fields: - secret_key_field = "app_secret_key" + secret_key_field = "app_secret_key" # nosec B105 secret_key_config_name = cls.model_fields[secret_key_field].alias if not secret_key_config_name: raise NotImplementedError("framework configuration secret_key field has no alias") diff --git a/pyproject.toml b/pyproject.toml index f28be51..85df5d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ # See LICENSE file for licensing details. [project] name = "paas-app-charmer" -version = "1.2.0" +version = "1.3.0" description = "Companion library for PaaS app charmer." readme = "README.md" authors = [