Use ruff format, and then undo most changes with black and isort. (#903)

This commit is contained in:
Felix Fontein
2025-05-24 08:30:31 +02:00
committed by GitHub
parent f3db4eeea5
commit b8adc3b241
34 changed files with 23 additions and 63 deletions

View File

@@ -99,8 +99,7 @@ class ACMEAccount:
and allow_creation
):
raise ModuleFailException(
"To create an account, an external account binding must be specified. "
"Use the acme_account module with the external_account_binding option."
"To create an account, an external account binding must be specified. Use the acme_account module with the external_account_binding option."
)
result, info = self.client.send_signed_request(

View File

@@ -108,8 +108,7 @@ class CryptographyChainMatcher(ChainMatcher):
)
else:
module.warn(
f"Criterium {criterium_idx} in select_chain has invalid {name} value. "
"Ignoring criterium."
f"Criterium {criterium_idx} in select_chain has invalid {name} value. Ignoring criterium."
)
return None

View File

@@ -191,8 +191,7 @@ class ACMECertificateClient:
if bad_authzs:
bad_authzs_str = ", ".join(sorted(bad_authzs))
raise ModuleFailException(
"Some of the authorizations for the order are in a bad state, so the order"
f" can no longer be satisfied: {bad_authzs_str}",
f"Some of the authorizations for the order are in a bad state, so the order can no longer be satisfied: {bad_authzs_str}",
)
def collect_invalid_authzs(self, order: Order) -> list[Authorization]: