1- import os
21from collections import namedtuple
32from typing import List , Tuple
43from pydantic import Field
54from pydantic_settings import BaseSettings
65
7- ENV = os .getenv ("ENV" , "production" )
8-
96
107class Settings (BaseSettings ):
118 env : str = Field ("production" )
@@ -26,7 +23,9 @@ class Settings(BaseSettings):
2623 project = {project_slug}
2724 """ )
2825 dsn_branch_name : str = Field ("auto_add_sentry_dsn" )
29- dsn_mr_title : str = Field ("[gitlab2sentry] Merge me to add your Sentry DSN to {project_name}" )
26+ dsn_mr_title : str = Field (
27+ "[gitlab2sentry] Merge me to add your Sentry DSN to {project_name}"
28+ )
3029 dsn_mr_description : str = Field ("""
3130 {mentions} Congrats, your Sentry project has been
3231 created, merge this
@@ -41,7 +40,9 @@ class Settings(BaseSettings):
4140 url = {sentry_url}
4241 """ )
4342 sentryclirc_branch_name : str = Field ("auto_add_sentry" )
44- sentryclirc_mr_title : str = Field ("[gitlab2sentry] Merge me to add Sentry to {project_name} or close me" )
43+ sentryclirc_mr_title : str = Field (
44+ "[gitlab2sentry] Merge me to add Sentry to {project_name} or close me"
45+ )
4546 sentryclirc_filepath : str = Field (".sentryclirc" )
4647 sentryclirc_com_msg : str = Field ("Update .sentryclirc" )
4748 sentryclirc_mr_description : str = Field ("""
@@ -65,9 +66,10 @@ class Settings(BaseSettings):
6566 gitlab_rmv_src_branch : bool = Field (True )
6667 gitlab_token : str = Field ("default-token" )
6768 gitlab_url : str = Field ("http://default-gitlab-url" )
69+ gitlab_signed_commit : bool = Field (False )
6870
6971
70- settings = Settings () # type: ignore
72+ settings = Settings () # type: ignore
7173
7274# G2SProject namedtuple configuration
7375G2SProject = namedtuple (
0 commit comments