The following issues were found

certbot/certbot/_internal/error_handler.py
1 issues
Too few public methods (1/2)
Error

Line: 165 Column: 1

                          logger.debug("Calling signal %s", signum)
            os.kill(os.getpid(), signum)

class ExitHandler(ErrorHandler):
    """Context manager for running code that must be cleaned up.

    Subclass of ErrorHandler, with the same usage and parameters.
    In addition to cleaning up on all signals, also cleans up on
    regular exit.

            

Reported by Pylint.

certbot/certbot/_internal/constants.py
1 issues
Unable to import 'acme'
Error

Line: 6 Column: 1

              
import pkg_resources

from acme import challenges
from certbot.compat import misc
from certbot.compat import os

SETUPTOOLS_PLUGINS_ENTRY_POINT = "certbot.plugins"
"""Setuptools entry point group name for plugins."""

            

Reported by Pylint.

certbot/certbot/_internal/cli/subparsers.py
1 issues
Import outside toplevel (certbot._internal.client.sample_user_agent)
Error

Line: 12 Column: 5

              

def _create_subparsers(helpful):
    from certbot._internal.client import sample_user_agent  # avoid import loops
    helpful.add(
        None, "--user-agent", default=flag_default("user_agent"),
        help='Set a custom user agent string for the client. User agent strings allow '
             'the CA to collect high level statistics about success rates by OS, '
             'plugin and use case, and to know when to deprecate support for past Python '

            

Reported by Pylint.

certbot/certbot/_internal/cli/cli_constants.py
1 issues
Constant name "cli_command" doesn't conform to UPPER_CASE naming style
Error

Line: 2 Column: 1

              """Certbot command line constants"""
cli_command = "certbot"


# Argparse's help formatting has a lot of unhelpful peculiarities, so we want
# to replace as much of it as we can...

# This is the stub to include in help generated by argparse
SHORT_USAGE = """

            

Reported by Pylint.

certbot-apache/certbot_apache/_internal/constants.py
1 issues
Unable to import 'certbot.compat'
Error

Line: 4 Column: 1

              """Apache plugin constants."""
import pkg_resources

from certbot.compat import os

MOD_SSL_CONF_DEST = "options-ssl-apache.conf"
"""Name of the mod_ssl config file as saved
in `certbot.configuration.NamespaceConfig.config_dir`."""


            

Reported by Pylint.

acme/acme/magic_typing.py
1 issues
Too few public methods (1/2)
Error

Line: 14 Column: 1

              warnings.warn("acme.magic_typing is deprecated and will be removed in a future release.",
              DeprecationWarning)

class TypingClass:
    """Ignore import errors by getting anything"""
    def __getattr__(self, name):
        return None  # pragma: no cover

            

Reported by Pylint.

tools/readlink.py
1 issues
Missing function or method docstring
Error

Line: 13 Column: 1

              import sys


def main(link):
    return os.path.realpath(link)

if __name__ == '__main__':
    print(main(sys.argv[1]))

            

Reported by Pylint.

certbot-ci/certbot_integration_tests/certbot_tests/__init__.py
1 issues
Unable to import 'pytest'
Error

Line: 2 Column: 1

              # pylint: disable=missing-module-docstring
import pytest

# Custom assertions defined in the following package need to be registered to be properly
# displayed in a pytest report when they are failing.
pytest.register_assert_rewrite('certbot_integration_tests.certbot_tests.assertions')

            

Reported by Pylint.

acme/acme/__init__.py
1 issues
Unable to import 'josepy'
Error

Line: 15 Column: 1

              #
# It is based on
# https://github.com/requests/requests/blob/1278ecdf71a312dc2268f3bfc0aabfab3c006dcf/requests/packages.py
import josepy as jose

for mod in list(sys.modules):
    # This traversal is apparently necessary such that the identities are
    # preserved (acme.jose.* is josepy.*)
    if mod == 'josepy' or mod.startswith('josepy.'):

            

Reported by Pylint.

certbot/examples/plugins/setup.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              from setuptools import setup

setup(
    name='certbot-example-plugins',
    package='certbot_example_plugins.py',
    install_requires=[
        'certbot',
    ],
    entry_points={

            

Reported by Pylint.