@@ -63,11 +63,13 @@ def _generate_template_arguments(self) -> Dict[str, Any]:
6363 "name" : self .project .name ,
6464 "compliance" : global_compliance ,
6565 "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+ ),
7173 }
7274 arguments ["packages" ] = description_list
7375 arguments ["render_time" ] = datetime .datetime .now ()
@@ -105,12 +107,14 @@ def _generate_description_for_one_package(
105107 "licence" : p .licence ,
106108 "is_compliant" : is_compliant ,
107109 "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+ )
114118 ),
115119 }
116120
0 commit comments