Remove stray print statements.
Add tox.ini with pep8 section.
Fix pep8 errors.
Change-Id: I6c171104359b16bcb130fdd56697d0663d8ec562
diff --git a/zuul-server b/zuul-server
index f63ae6a..bb7a1e6 100755
--- a/zuul-server
+++ b/zuul-server
@@ -23,14 +23,16 @@
import logging.config
+
def parse_arguments():
parser = argparse.ArgumentParser(description='Project gating system.')
parser.add_argument('-c', dest='config',
help='specify the config file')
return parser.parse_args()
+
def read_config(args):
- config=ConfigParser.ConfigParser()
+ config = ConfigParser.ConfigParser()
if args.config:
locations = [args.config]
else:
@@ -42,6 +44,7 @@
return config
raise Exception("Unable to locate config file in %s" % locations)
+
def setup_logging(config):
if config.has_option('zuul', 'log_config'):
fp = os.path.expanduser(config.get('zuul', 'log_config'))
@@ -51,6 +54,7 @@
else:
logging.basicConfig(level=logging.DEBUG)
+
def main(config):
sched = zuul.scheduler.Scheduler(config)