@@ -278,7 +278,6 @@ def validate(ctx,
278
278
"requirement_severity" : requirement_severity ,
279
279
"requirement_severity_only" : requirement_severity_only ,
280
280
"enable_profile_inheritance" : not disable_profile_inheritance ,
281
- "verbose" : verbose ,
282
281
"rocrate_uri" : rocrate_uri ,
283
282
"abort_on_first" : fail_fast
284
283
}
@@ -348,14 +347,14 @@ def validate(ctx,
348
347
for profile in profile_identifier :
349
348
# Set the selected profile
350
349
validation_settings ["profile_identifier" ] = profile
351
- validation_settings ["profile_autodetected" ] = autodetection
352
350
logger .debug ("Profile selected for validation: %s" , validation_settings ["profile_identifier" ])
353
351
logger .debug ("Profile autodetected: %s" , autodetection )
354
352
355
353
# Compute the profile statistics
356
354
profile_stats = __compute_profile_stats__ (validation_settings )
357
355
358
- report_layout = ValidationReportLayout (console , validation_settings , profile_stats , None )
356
+ report_layout = ValidationReportLayout (console , validation_settings ,
357
+ profile_stats , None , profile_autodetected = autodetection )
359
358
360
359
# Validate RO-Crate against the profile and get the validation result
361
360
result : ValidationResult = None
@@ -513,11 +512,13 @@ def update(self, event: Event):
513
512
514
513
class ValidationReportLayout (Layout ):
515
514
516
- def __init__ (self , console : Console , validation_settings : dict , profile_stats : dict , result : ValidationResult ):
515
+ def __init__ (self , console : Console , validation_settings : dict ,
516
+ profile_stats : dict , result : ValidationResult , profile_autodetected : bool = False ):
517
517
super ().__init__ ()
518
518
self .console = console
519
519
self .validation_settings = validation_settings
520
520
self .profile_stats = profile_stats
521
+ self .profile_autodetected = profile_autodetected
521
522
self .result = result
522
523
self .__layout = None
523
524
self ._validation_checks_progress = None
@@ -566,7 +567,7 @@ def __init_layout__(self):
566
567
f"\n [bold cyan]RO-Crate:[/bold cyan] [bold]{ URI (settings ['rocrate_uri' ]).uri } [/bold]"
567
568
"\n [bold cyan]Target Profile:[/bold cyan][bold magenta] "
568
569
f"{ settings ['profile_identifier' ]} [/bold magenta] "
569
- f"{ '[italic](autodetected)[/italic]' if settings [ ' profile_autodetected' ] else '' } "
570
+ f"{ '[italic](autodetected)[/italic]' if self . profile_autodetected else '' } "
570
571
f"\n [bold cyan]Validation Severity:[/bold cyan] "
571
572
f"[bold { severity_color } ]{ settings ['requirement_severity' ]} [/bold { severity_color } ]" ,
572
573
style = "white" , align = "left" ),
0 commit comments