Class: Avm::Files::Formatter::Formats::Python

Inherits:
GenericPlain show all
Defined in:
lib/avm/files/formatter/formats/python.rb

Constant Summary collapse

VALID_BASENAMES =
%w[*.py].freeze
VALID_TYPES =
['x-python'].freeze

Instance Method Summary collapse

Methods inherited from GenericPlain

#file_apply, #string_apply

Methods inherited from Base

#apply, #match?, #name, #valid_basenames, #valid_types

Instance Method Details

#internal_apply(files) ⇒ Object



13
14
15
16
# File 'lib/avm/files/formatter/formats/python.rb', line 13

def internal_apply(files)
  ::Avm::Executables.yapf.command.append(['--in-place', *files]).system!
  super(files)
end