We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
inspect
1 parent 668ac9e commit 7c8748dCopy full SHA for 7c8748d
src/pypi_attestations/_cli.py
@@ -390,8 +390,9 @@ def _inspect(args: argparse.Namespace) -> None:
390
391
Warning: The information displayed from the attestations are not verified.
392
"""
393
- _validate_files(args.files, should_exist=True)
394
- for file_path in args.files:
+ attestation_files = [f for f in args.files if f.suffix == '.attestation']
+ _validate_files(attestation_files, should_exist=True)
395
+ for file_path in attestation_files:
396
try:
397
attestation = Attestation.model_validate_json(file_path.read_bytes())
398
except ValidationError as validation_error:
0 commit comments