43 lines
1.7 KiB
Ruby
43 lines
1.7 KiB
Ruby
class Proselint < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Linter for prose"
|
|
homepage "http://proselint.com"
|
|
url "https://files.pythonhosted.org/packages/42/ff/8e7ad0108b8faffdf2ec7d170b4a8a3c9bc91f5077debf5381ef14702588/proselint-0.10.2.tar.gz"
|
|
sha256 "3a87eb393056d1bc77d898e4bcf8998f50e9ad84f7b9ff7cf2720509ac8ef904"
|
|
head "https://github.com/amperser/proselint.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "79d56a468954642ab86ebcb78268b4928fb5a2d0e1741f5830de42d288601f42" => :mojave
|
|
sha256 "c6c0425dc06297b4d4200e2f53920732e44bcc6009108e6cc5d5ce752e3913a2" => :high_sierra
|
|
sha256 "5c21d30d5a33124a411e7c6f79581f8ac7478c7508e100ac1a71e7d25b0e6a76" => :sierra
|
|
sha256 "791b9de22b93ff3e09a6bff939ccb5edfc1be84dc32d16692ee68603c46f6d31" => :el_capitan
|
|
end
|
|
|
|
depends_on "python@2"
|
|
|
|
resource "click" do
|
|
url "https://files.pythonhosted.org/packages/95/d9/c3336b6b5711c3ab9d1d3a80f1a3e2afeb9d8c02a7166462f6cc96570897/click-6.7.tar.gz"
|
|
sha256 "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
|
|
end
|
|
|
|
resource "future" do
|
|
url "https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz"
|
|
sha256 "e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://files.pythonhosted.org/packages/16/d8/bc6316cf98419719bd59c91742194c111b6f2e85abac88e496adefaf7afe/six-1.11.0.tar.gz"
|
|
sha256 "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
output = pipe_output("#{bin}/proselint --compact -", "John is very unique.")
|
|
assert_match /weasel_words\.very.*uncomparables/m, output
|
|
end
|
|
end
|