mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 08:03:19 +02:00
Remove outdated pylint comments (#9167)
* Remove outdated pylint: disable=unused-import annotations. * remove # pylint: disable=ungrouped-imports annotations. * Remove single pylint: disable = unused-argument in DeleteIfAppropriateTest.test_opt_in_deletion.
This commit is contained in:
@@ -10,9 +10,9 @@ import string
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from certbot.compat import filesystem # pylint: disable=ungrouped-imports
|
||||
from certbot.compat import os # pylint: disable=ungrouped-imports
|
||||
import certbot.tests.util as test_util # pylint: disable=ungrouped-imports
|
||||
from certbot.compat import filesystem
|
||||
from certbot.compat import os
|
||||
import certbot.tests.util as test_util
|
||||
|
||||
try:
|
||||
import mock
|
||||
|
||||
@@ -18,7 +18,7 @@ import pytz
|
||||
|
||||
from certbot import crypto_util, configuration
|
||||
from certbot import errors
|
||||
from certbot import interfaces # pylint: disable=unused-import
|
||||
from certbot import interfaces
|
||||
from certbot import util
|
||||
from certbot._internal import account
|
||||
from certbot._internal import cli
|
||||
@@ -529,7 +529,6 @@ class DeleteIfAppropriateTest(test_util.ConfigTestCase):
|
||||
def test_opt_in_deletion(self, mock_get_utility, mock_delete,
|
||||
mock_cert_path_to_lineage, mock_full_archive_dir,
|
||||
mock_match_and_check_overlaps, mock_renewal_file_for_certname):
|
||||
# pylint: disable = unused-argument
|
||||
config = self.config
|
||||
config.namespace.delete_after_revoke = True
|
||||
config.cert_path = "/some/reasonable/path"
|
||||
|
||||
@@ -7,10 +7,10 @@ from typing import Tuple
|
||||
import unittest
|
||||
|
||||
import josepy as jose
|
||||
import OpenSSL.crypto # pylint: disable=unused-import
|
||||
import OpenSSL.crypto
|
||||
|
||||
from acme import challenges
|
||||
from acme import standalone as acme_standalone # pylint: disable=unused-import
|
||||
from acme import standalone as acme_standalone
|
||||
from certbot import achallenges
|
||||
from certbot import errors
|
||||
from certbot.tests import acme_util
|
||||
@@ -22,7 +22,6 @@ except ImportError: # pragma: no cover
|
||||
from unittest import mock
|
||||
|
||||
|
||||
|
||||
class ServerManagerTest(unittest.TestCase):
|
||||
"""Tests for certbot._internal.plugins.standalone.ServerManager."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user