From 5586c3086b1f0cf9db493f36eb9063e02e7015e3 Mon Sep 17 00:00:00 2001 From: Pierre Tardy Date: Thu, 14 Aug 2014 18:31:29 +0200 Subject: [PATCH] minor coding style fixes Signed-off-by: Pierre Tardy --- Makefile | 2 +- master/buildbot/www/plugin.py | 1 + pkg/buildbot_pkg.py | 13 +++---------- .../buildbot_codeparameter/__init__.py | 1 + 4 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 0be6c5af562..a614966a68d 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ pyflakes: pyflakes master/buildbot slave/buildslave pep8: - pep8 --config=common/pep8rc master/buildbot slave/buildslave www/buildbot_*.py www/setup.py www/*/buildbot_*.py www/*/setup.py + pep8 --config=common/pep8rc master/buildbot slave/buildslave www/buildbot_*/ www/setup.py www/*/buildbot_*/ www/*/setup.py gruntci: cd www; node_modules/.bin/grunt ci diff --git a/master/buildbot/www/plugin.py b/master/buildbot/www/plugin.py index ecffc4e95a0..911262b3b40 100644 --- a/master/buildbot/www/plugin.py +++ b/master/buildbot/www/plugin.py @@ -17,6 +17,7 @@ from twisted.web import static + class Application(object): def __init__(self, modulename, description): self.description = description diff --git a/pkg/buildbot_pkg.py b/pkg/buildbot_pkg.py index 93327c5ff48..b5fcc4ba971 100644 --- a/pkg/buildbot_pkg.py +++ b/pkg/buildbot_pkg.py @@ -64,18 +64,11 @@ def getVersion(init_file): # - override the distutils command to insert our js build # - has very small setup.py # -# from setuptools import setup +# from buildbot_pkg import setup_www # -# class cmdClass(dict): -# def get(self, name): -# import buildbot_pkg -# return buildbot_pkg.getCmdClassForJS(name) -# -# setup( +# setup_www( # ... -# -# setup_requires="buildbot_pkg", -# cmdclass=cmdClass(), +# packages=["buildbot_myplugin"] # ) # # We need to override the first command done, so that source tree is populated very soon, diff --git a/www/codeparameter/buildbot_codeparameter/__init__.py b/www/codeparameter/buildbot_codeparameter/__init__.py index b61114e5dc4..79a32e0ca19 100644 --- a/www/codeparameter/buildbot_codeparameter/__init__.py +++ b/www/codeparameter/buildbot_codeparameter/__init__.py @@ -16,6 +16,7 @@ from buildbot.www.plugin import Application from buildbot.schedulers.forcesched import TextParameter + class CodeParameter(TextParameter): """A code editor using ace"""