1
- import os
2
1
from collections import namedtuple
3
2
from typing import List , Tuple
4
3
from pydantic import Field
5
4
from pydantic_settings import BaseSettings
6
5
7
- ENV = os .getenv ("ENV" , "production" )
8
-
9
6
10
7
class Settings (BaseSettings ):
11
8
env : str = Field ("production" )
@@ -26,7 +23,9 @@ class Settings(BaseSettings):
26
23
project = {project_slug}
27
24
""" )
28
25
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
+ )
30
29
dsn_mr_description : str = Field ("""
31
30
{mentions} Congrats, your Sentry project has been
32
31
created, merge this
@@ -41,7 +40,9 @@ class Settings(BaseSettings):
41
40
url = {sentry_url}
42
41
""" )
43
42
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
+ )
45
46
sentryclirc_filepath : str = Field (".sentryclirc" )
46
47
sentryclirc_com_msg : str = Field ("Update .sentryclirc" )
47
48
sentryclirc_mr_description : str = Field ("""
@@ -65,9 +66,10 @@ class Settings(BaseSettings):
65
66
gitlab_rmv_src_branch : bool = Field (True )
66
67
gitlab_token : str = Field ("default-token" )
67
68
gitlab_url : str = Field ("http://default-gitlab-url" )
69
+ gitlab_signed_commit : bool = Field (False )
68
70
69
71
70
- settings = Settings () # type: ignore
72
+ settings = Settings () # type: ignore
71
73
72
74
# G2SProject namedtuple configuration
73
75
G2SProject = namedtuple (
0 commit comments