3
0
Fork 0

fix: make pylint happy

This commit is contained in:
Lance Edgar 2026-01-03 20:59:24 -06:00
parent c8ad59f6d9
commit d018d4e764

View file

@ -35,7 +35,7 @@ from mako.lookup import TemplateLookup
from wuttjamaican.app import GenericHandler
class InstallHandler(GenericHandler):
class InstallHandler(GenericHandler): # pylint: disable=too-many-public-methods
"""
Base class and default implementation for the :term:`install
handler`.
@ -387,12 +387,16 @@ class InstallHandler(GenericHandler):
self.write_web_conf(appdir, context)
self.write_upgrade_sh(appdir, context)
def write_wutta_conf(self, appdir, context):
def write_wutta_conf(
self, appdir, context
): # pylint: disable=missing-function-docstring
self.make_config_file(
"wutta.conf.mako", os.path.join(appdir, "wutta.conf"), **context
)
def write_web_conf(self, appdir, context):
def write_web_conf(
self, appdir, context
): # pylint: disable=missing-function-docstring
web_context = dict(context)
web_context.setdefault("beaker_key", context.get("pkg_name", "poser"))
web_context.setdefault("beaker_secret", "TODO_YOU_SHOULD_CHANGE_THIS")
@ -402,7 +406,9 @@ class InstallHandler(GenericHandler):
"web.conf.mako", os.path.join(appdir, "web.conf"), **web_context
)
def write_upgrade_sh(self, appdir, context):
def write_upgrade_sh(
self, appdir, context
): # pylint: disable=missing-function-docstring
template = self.templates.get_template("upgrade.sh.mako")
output_path = os.path.join(appdir, "upgrade.sh")
self.render_mako_template(template, context, output_path=output_path)