@@ -63,11 +63,13 @@ def _generate_template_arguments(self) -> Dict[str, Any]:
63
63
"name" : self .project .name ,
64
64
"compliance" : global_compliance ,
65
65
"compliance_details" : (
66
- f"Project [{ self .project .name } ]'s licence is compliant: { self .project .licence } ."
67
- "All its dependencies are also compliant licence-wise."
68
- )
69
- if global_compliance
70
- else f"Project [{ self .project .name } ] or one, at least, of its dependencies has a non compliant licence" ,
66
+ (
67
+ f"Project [{ self .project .name } ]'s licence is compliant: { self .project .licence } ."
68
+ "All its dependencies are also compliant licence-wise."
69
+ )
70
+ if global_compliance
71
+ else f"Project [{ self .project .name } ] or one, at least, of its dependencies has a non compliant licence"
72
+ ),
71
73
}
72
74
arguments ["packages" ] = description_list
73
75
arguments ["render_time" ] = datetime .datetime .now ()
@@ -105,12 +107,14 @@ def _generate_description_for_one_package(
105
107
"licence" : p .licence ,
106
108
"is_compliant" : is_compliant ,
107
109
"mark_as_problematic" : not is_licence_compliant ,
108
- "licence_compliance_details" : "Licence is compliant."
109
- if is_licence_compliant
110
- else (
111
- f"Package's licence manually checked: { manual_check_details } "
112
- if package_manually_checked
113
- else "Licence is not compliant according to project's configuration."
110
+ "licence_compliance_details" : (
111
+ "Licence is compliant."
112
+ if is_licence_compliant
113
+ else (
114
+ f"Package's licence manually checked: { manual_check_details } "
115
+ if package_manually_checked
116
+ else "Licence is not compliant according to project's configuration."
117
+ )
114
118
),
115
119
}
116
120
0 commit comments