exabugs / WebIDE

0 stars 0 forks source link

Python のフォーマッタを追加する #4

Closed exabugs closed 6 years ago

exabugs commented 6 years ago

https://github.com/google/yapf

exabugs commented 6 years ago
function style_python({ fp }, callback) {
  const bin = 'yapf';
  const command = [bin,
    '-i', // 上書き
    fp];
  exec(command.join(' '), (err) => {
    console.log(err);
    callback(err);
  });
}