From ced58ab79574c7112b058ce952d08d692ce9bd21 Mon Sep 17 00:00:00 2001 From: Vincenzo Mauro <43814449+vimauro@users.noreply.github.com> Date: Thu, 26 Sep 2024 14:59:04 +0000 Subject: [PATCH] fix formatting --- pyscitt/pyscitt/cli/governance.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyscitt/pyscitt/cli/governance.py b/pyscitt/pyscitt/cli/governance.py index 4e962bc..532d355 100644 --- a/pyscitt/pyscitt/cli/governance.py +++ b/pyscitt/pyscitt/cli/governance.py @@ -180,11 +180,17 @@ def update_scitt_constitution(client: Client, scitt_constitution_path: Path, yes def get_constitution(client: Client, path: Path): path.write_text(client.get_constitution()) + def clean_pem_file(bundle: str) -> str: """ Cleans a PEM file by removing lines that start with '#' or are empty. """ - return '\n'.join(line for line in bundle.splitlines() if line.strip() and not line.startswith('#')) + return "\n".join( + line + for line in bundle.splitlines() + if line.strip() and not line.startswith("#") + ) + def setup_local_development( client: Client, trust_store_dir: Optional[Path], did_web_ca_certs: Optional[Path]