2019-06-17 14:06:47 +00:00
|
|
|
class Yapf < Formula
|
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
|
|
|
desc "Formatter for python code"
|
|
|
|
homepage "https://github.com/google/yapf"
|
2019-07-20 22:47:46 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/89/41/7f7c884531730c0cb471764e1ddf50f59d25bb2ab258ede633264344e9cb/yapf-0.28.0.tar.gz"
|
|
|
|
sha256 "6f94b6a176a7c114cfa6bad86d40f259bbe0f10cf2fa7f2f4b3596fc5802a41b"
|
2019-06-17 14:06:47 +00:00
|
|
|
|
2019-06-17 14:37:11 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-07-21 00:27:41 +00:00
|
|
|
sha256 "c8de7e9be2a3c5c8a09501199d4beea2accbd5a62471a6def5495899b8facc33" => :mojave
|
|
|
|
sha256 "a819475f27f0182bfee9ae5c3a63fb60af1119c78fbea7509954fb1fe035986a" => :high_sierra
|
|
|
|
sha256 "c5be10b759aaa579aeafb7b6a0d941aced581d9ab5428198ea588f367c37809b" => :sierra
|
2019-06-17 14:37:11 +00:00
|
|
|
end
|
|
|
|
|
2019-06-17 14:06:47 +00:00
|
|
|
depends_on "python"
|
|
|
|
|
|
|
|
def install
|
|
|
|
virtualenv_install_with_resources
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output("echo \"x='homebrew'\" | #{bin}/yapf")
|
|
|
|
assert_equal "x = 'homebrew'", output.strip
|
|
|
|
end
|
|
|
|
end
|