From 0ab42fd3c20a00aedb0500a7f1405f97aa418519 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Thu, 1 Dec 2022 12:58:03 -0800 Subject: [PATCH] disable lint and remove new from language asking about running a deploy hook --- certbot/certbot/_internal/main.py | 4 ++-- certbot/certbot/_internal/storage.py | 2 ++ certbot/tests/main_test.py | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/certbot/certbot/_internal/main.py b/certbot/certbot/_internal/main.py index 92cd16fba..7de59ac87 100644 --- a/certbot/certbot/_internal/main.py +++ b/certbot/certbot/_internal/main.py @@ -1736,8 +1736,8 @@ def reconfigure(config: configuration.NamespaceConfig, # figure this out before we modify config if config.deploy_hook and not config.run_deploy_hook: - msg = ("You are attempting to set a new --deploy-hook. Would you like Certbot to run the " - "new hook when it performs a dry run with the new settings? This will run all " + msg = ("You are attempting to set a --deploy-hook. Would you like Certbot to run the " + "hook when it performs a dry run with the new settings? This will run all " "relevant deploy hooks, including directory hooks, unless --no-directory-hooks " "is set. This will use the current active certificate, and not the temporary test " "certificate acquired during the dry run.") diff --git a/certbot/certbot/_internal/storage.py b/certbot/certbot/_internal/storage.py index b4f86cb9d..9b0b489c7 100644 --- a/certbot/certbot/_internal/storage.py +++ b/certbot/certbot/_internal/storage.py @@ -45,6 +45,8 @@ README = "README" CURRENT_VERSION = pkg_resources.parse_version(certbot.__version__) BASE_PRIVKEY_MODE = 0o600 +# pylint: disable=too-many-lines + def renewal_conf_files(config: configuration.NamespaceConfig) -> List[str]: """Build a list of all renewal configuration files. diff --git a/certbot/tests/main_test.py b/certbot/tests/main_test.py index ff749e00c..66c7d7194 100644 --- a/certbot/tests/main_test.py +++ b/certbot/tests/main_test.py @@ -651,6 +651,9 @@ class ReconfigureTest(test_util.TempDirTestCase): new_config = configobj.ConfigObj(f, encoding='utf-8', default_encoding='utf-8') self.assertEqual(new_config['renewalparams']['authenticator'], 'nginx') + def test_report_results(self): + pass + class DeleteIfAppropriateTest(test_util.ConfigTestCase): """Tests for certbot._internal.main._delete_if_appropriate """