mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
pylint: upstream fixed #248 in 1.4.0
This commit is contained in:
parent
0a44bbb7a1
commit
79bb3cc80d
8 changed files with 10 additions and 11 deletions
|
|
@ -322,11 +322,7 @@ max-attributes=7
|
|||
min-public-methods=2
|
||||
|
||||
# Maximum number of public methods for a class (see R0904).
|
||||
# Pylint counts all of the public methods that you also inherit.
|
||||
# This has been reported/fixed as a bug, but until our version is fixed,
|
||||
# I think this will only cause us headaches. (Unittests are automatically over)
|
||||
# https://bitbucket.org/logilab/pylint/issue/248/too-many-public-methods-triggered-from
|
||||
max-public-methods=100
|
||||
max-public-methods=20
|
||||
|
||||
|
||||
[EXCEPTIONS]
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ from letsencrypt.client.apache import parser
|
|||
|
||||
|
||||
class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
||||
# pylint: disable=too-many-instance-attributes
|
||||
# pylint: disable=too-many-instance-attributes,too-many-public-methods
|
||||
"""Apache configurator.
|
||||
|
||||
State of Configurator: This code has been tested under Ubuntu 12.04
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import dialog
|
|||
from letsencrypt.client import display
|
||||
|
||||
|
||||
class DialogHandler(logging.Handler):
|
||||
class DialogHandler(logging.Handler): # pylint: disable=too-few-public-methods
|
||||
"""Logging handler using dialog info box.
|
||||
|
||||
:ivar int height: Height of the info box (without padding).
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class ACMEObjectValidateTest(unittest.TestCase):
|
|||
self._test_fails('{"type": "foo", "price": "asd"}')
|
||||
|
||||
|
||||
class PrettyTest(unittest.TestCase):
|
||||
class PrettyTest(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||
"""Tests for letsencrypt.client.acme.pretty."""
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ from letsencrypt.client.apache import configurator
|
|||
from letsencrypt.client.apache import obj
|
||||
|
||||
|
||||
class ApacheTest(unittest.TestCase):
|
||||
class ApacheTest(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||
|
||||
def setUp(self):
|
||||
super(ApacheTest, self).setUp()
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class CSRMatchesPubkeyTest(unittest.TestCase):
|
|||
self.assertFalse(self._call_testdata('csr.pem', RSA512_KEY))
|
||||
|
||||
|
||||
class MakeKeyTest(unittest.TestCase):
|
||||
class MakeKeyTest(unittest.TestCase): # pylint: disable=too-few-public-methods
|
||||
"""Tests for letsencrypt.client.crypto_util.make_key."""
|
||||
|
||||
def test_it(self): # pylint: disable=no-self-use
|
||||
|
|
@ -124,6 +124,7 @@ class ValidPrivkeyTest(unittest.TestCase):
|
|||
|
||||
|
||||
class MakeSSCertTest(unittest.TestCase):
|
||||
# pylint: disable=too-few-public-methods
|
||||
"""Tests for letsencrypt.client.crypto_util.make_ss_cert."""
|
||||
|
||||
def test_it(self): # pylint: disable=no-self-use
|
||||
|
|
@ -170,6 +171,7 @@ class GetCertInfoTest(unittest.TestCase):
|
|||
|
||||
|
||||
class B64CertToPEMTest(unittest.TestCase):
|
||||
# pylint: disable=too-few-public-methods
|
||||
"""Tests for letsencrypt.client.crypto_util.b64_cert_to_pem."""
|
||||
|
||||
def test_it(self):
|
||||
|
|
|
|||
|
|
@ -385,6 +385,7 @@ class TestFullCheckpointsReverter(unittest.TestCase):
|
|||
|
||||
|
||||
class QuickInitReverterTest(unittest.TestCase):
|
||||
# pylint: disable=too-few-public-methods
|
||||
"""Quick test of init."""
|
||||
def test_init(self):
|
||||
from letsencrypt.client.reverter import Reverter
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -25,7 +25,7 @@ testing_extras = [
|
|||
'coverage',
|
||||
'nose',
|
||||
'nosexcover',
|
||||
'pylint',
|
||||
'pylint>=1.4.0', # upstream #248
|
||||
'tox',
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue