diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2018-03-26 11:25:04 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2018-03-26 13:04:25 -0400 |
commit | 36148ad8bbdb94162b2926f4700d935ee4dc5994 (patch) | |
tree | 1d893c4ca0b0afa407f7724c7942dfbf643560af /buildscripts/ciconfig/evergreen.py | |
parent | d62d631f0ca40c5199fdfae2980080ca0cc982b5 (diff) | |
download | mongo-36148ad8bbdb94162b2926f4700d935ee4dc5994.tar.gz |
SERVER-23312 Format Python files with yapf
Diffstat (limited to 'buildscripts/ciconfig/evergreen.py')
-rw-r--r-- | buildscripts/ciconfig/evergreen.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/buildscripts/ciconfig/evergreen.py b/buildscripts/ciconfig/evergreen.py index 9a4f7a9ed99..3c41d6e2012 100644 --- a/buildscripts/ciconfig/evergreen.py +++ b/buildscripts/ciconfig/evergreen.py @@ -20,8 +20,10 @@ class EvergreenProjectConfig(object): self.path = path self.tasks = [Task(task_dict) for task_dict in self._conf["tasks"]] self._tasks_by_name = {task.name: task for task in self.tasks} - self.variants = [Variant(variant_dict, self._tasks_by_name) - for variant_dict in self._conf["buildvariants"]] + self.variants = [ + Variant(variant_dict, self._tasks_by_name) + for variant_dict in self._conf["buildvariants"] + ] self._variants_by_name = {variant.name: variant for variant in self.variants} self.distro_names = set() for variant in self.variants: @@ -106,8 +108,10 @@ class Variant(object): def __init__(self, conf_dict, task_map): self.raw = conf_dict run_on = self.run_on - self.tasks = [VariantTask(task_map.get(t["name"]), t.get("distros", run_on), self) - for t in conf_dict["tasks"]] + self.tasks = [ + VariantTask(task_map.get(t["name"]), t.get("distros", run_on), self) + for t in conf_dict["tasks"] + ] self.distro_names = set(run_on) for task in self.tasks: self.distro_names.update(task.run_on) @@ -176,6 +180,7 @@ class Variant(object): class VariantTask(Task): """Represent a task definition in the context of a build variant.""" + def __init__(self, task, run_on, variant): Task.__init__(self, task.raw) self.run_on = run_on @@ -199,7 +204,6 @@ class VariantTask(Task): class ResmokeArgs(object): - @staticmethod def get_arg(resmoke_args, name): """Return the value of the option --'name' in the 'resmoke_args' string or |