Yapf Feature

YAPF support, to automatically reformat all your (python) source code.

$ make format

Usage

To use the Yapf Feature, make sure your Projectfile contains the following:

from medikit import require

yapf = require('yapf')

The yapf handle is a Config instance, and can be used to customize the feature.

Implementation

class medikit.feature.yapf.YapfFeature(dispatcher)[source]
on_before_start(event)[source]

Listens to medikit.on_start event (priority: -101)

on_make_generate(event)[source]

Listens to medikit.feature.make.on_generate event (priority: -20)

on_python_generate(event)[source]

Listens to medikit.feature.python.on_generate event (priority: 0)

on_start(event)[source]

Listens to medikit.on_start event (priority: -20)

requires = {'python'}