The following issues were found
letstest/setup.py
1 issues
Line: 1
Column: 1
from setuptools import find_packages
from setuptools import setup
setup(
name='letstest',
version='1.0',
description='Test Certbot on different AWS images',
url='https://github.com/certbot/certbot',
author='Certbot Project',
Reported by Pylint.
certbot-ci/certbot_integration_tests/nginx_tests/nginx_config.py
1 issues
Line: 8
Column: 1
import pkg_resources
def construct_nginx_config(nginx_root, nginx_webroot, http_port, https_port, other_port,
default_server, key_path=None, cert_path=None, wtf_prefix='le'):
"""
This method returns a full nginx configuration suitable for integration tests.
:param str nginx_root: nginx root configuration path
:param str nginx_webroot: nginx webroot path
Reported by Pylint.
certbot-apache/certbot_apache/_internal/override_gentoo.py
1 issues
Line: 52
Column: 16
""" Parses Apache CLI options from Gentoo configuration file """
defines = apache_util.parse_define_file(self.apacheconfig_filep,
"APACHE2_OPTS")
for k, v in defines.items():
self.variables[k] = v
def update_modules(self):
"""Get loaded modules from httpd process, and add them to DOM"""
mod_cmd = [self.configurator.options.ctl, "modules"]
Reported by Pylint.
tools/pipstrap.py
1 issues
Line: 6
Column: 1
import pip_install
def main():
pip_install.main('pip setuptools wheel'.split())
if __name__ == '__main__':
main()
Reported by Pylint.
certbot/certbot/_internal/updater.py
1 issues
Line: 31
Column: 5
return
try:
installer = plug_sel.get_unprepared_installer(config, plugins)
except errors.Error as e:
logger.error("Could not choose appropriate plugin for updaters: %s", e)
return
if installer:
_run_updaters(lineage, installer, config)
_run_enhancement_updaters(lineage, installer, config)
Reported by Pylint.
certbot/certbot/_internal/snap_config.py
1 issues
Line: 57
Column: 9
try:
response = session.get('http://snapd/v2/connections?snap=certbot&interface=content')
response.raise_for_status()
except RequestException as e:
if isinstance(e, HTTPError) and e.response.status_code == 404:
LOGGER.error('An error occurred while fetching Certbot snap plugins: '
'your version of snapd is outdated.')
LOGGER.error('Please run "sudo snap install core; sudo snap refresh core" '
'in your terminal and try again.')
Reported by Pylint.
certbot-ci/certbot_integration_tests/utils/proxy.py
1 issues
Line: 18
Column: 9
# pylint: disable=missing-function-docstring
class ProxyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
# pylint: disable=missing-class-docstring
def do_GET(self):
headers = {key.lower(): value for key, value in self.headers.items()}
backend = [backend for pattern, backend in mapping.items()
if re.match(pattern, headers['host'])][0]
response = requests.get(backend + self.path, headers=headers)
Reported by Pylint.
certbot-apache/certbot_apache/_internal/interfaces.py
1 issues
Line: 105
Column: 1
import abc
class ParserNode(object, metaclass=abc.ABCMeta):
"""
ParserNode is the basic building block of the tree of such nodes,
representing the structure of the configuration. It is largely meant to keep
the structure information intact and idiomatically accessible.
Reported by Pylint.
certbot/certbot/_internal/plugins/null.py
1 issues
Line: 31
Column: 5
def get_all_names(self):
return []
def deploy_cert(self, domain, cert_path, key_path,
chain_path=None, fullchain_path=None):
pass # pragma: no cover
def enhance(self, domain, enhancement, options=None):
pass # pragma: no cover
Reported by Pylint.
certbot-apache/certbot_apache/_internal/entrypoint.py
1 issues
Line: 4
Column: 1
""" Entry point for Apache Plugin """
from distutils.version import LooseVersion
from certbot import util
from certbot_apache._internal import configurator
from certbot_apache._internal import override_arch
from certbot_apache._internal import override_centos
from certbot_apache._internal import override_darwin
from certbot_apache._internal import override_debian
Reported by Pylint.