60 lines
2.7 KiB
Ruby
60 lines
2.7 KiB
Ruby
class Doc8 < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Style checker for Sphinx documentation"
|
|
homepage "https://github.com/PyCQA/doc8"
|
|
url "https://files.pythonhosted.org/packages/e0/38/af1889fbcfae4b66eb936f0f43ceaa315b19b8d4ae1123e1bcab0d9d0738/doc8-0.11.2.tar.gz"
|
|
sha256 "c35a231f88f15c204659154ed3d499fa4d402d7e63d41cba7b54cf5e646123ab"
|
|
license "Apache-2.0"
|
|
head "https://github.com/PyCQA/doc8.git", branch: "main"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "aac650bb05fb736a569228fdb1c1f75f45aeea6c60f2324253f0e3ec69601609"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "21bee28d0330f49a70b3ae4572d6d41aba3bc622d252a1264b0d13be4bfd7692"
|
|
sha256 cellar: :any_skip_relocation, monterey: "ae21f8ecfcd761044aeb5b442bfc2714b0ecb36b3271b3627670c14d2310e9c3"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "978fb08a7e2a9fbd5b7a85dee5e7b92567abf52d76c04ed30c46f6c5aa84765b"
|
|
sha256 cellar: :any_skip_relocation, catalina: "b013492fdace28d5b4ee51aa8453e6a578a42dad076fbd27b1fff74566b22d67"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "b4cfd64de939bb1961e65f9d18629244bcd8d63c3befc1025d26a3c70823011d"
|
|
end
|
|
|
|
depends_on "python@3.10"
|
|
|
|
resource "docutils" do
|
|
url "https://files.pythonhosted.org/packages/57/b1/b880503681ea1b64df05106fc7e3c4e3801736cf63deffc6fa7fc5404cf5/docutils-0.18.1.tar.gz"
|
|
sha256 "679987caf361a7539d76e584cbeddc311e3aee937877c87346f31debc63e9d06"
|
|
end
|
|
|
|
resource "pbr" do
|
|
url "https://files.pythonhosted.org/packages/96/9f/f4bc832eeb4ae723b86372277da56a5643b0ad472a95314e8f516a571bb0/pbr-5.9.0.tar.gz"
|
|
sha256 "e8dca2f4b43560edef58813969f52a56cef023146cbb8931626db80e6c1c4308"
|
|
end
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/59/0f/eb10576eb73b5857bc22610cdfc59e424ced4004fe7132c8f2af2cc168d3/Pygments-2.12.0.tar.gz"
|
|
sha256 "5eb116118f9612ff1ee89ac96437bb6b49e8f04d8a13b514ba26f620208e26eb"
|
|
end
|
|
|
|
resource "restructuredtext-lint" do
|
|
url "https://files.pythonhosted.org/packages/48/9c/6d8035cafa2d2d314f34e6cd9313a299de095b26e96f1c7312878f988eec/restructuredtext_lint-1.4.0.tar.gz"
|
|
sha256 "1b235c0c922341ab6c530390892eb9e92f90b9b75046063e047cacfb0f050c45"
|
|
end
|
|
|
|
resource "stevedore" do
|
|
url "https://files.pythonhosted.org/packages/67/73/cd693fde78c3b2397d49ad2c6cdb082eb0b6a606188876d61f53bae16293/stevedore-3.5.0.tar.gz"
|
|
sha256 "f40253887d8712eaa2bb0ea3830374416736dc8ec0e22f5a65092c1174c44335"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
(testpath/"broken.rst").write <<~EOS
|
|
Heading
|
|
------
|
|
EOS
|
|
output = pipe_output("#{bin}/doc8 broken.rst 2>&1")
|
|
assert_match "D000 Title underline too short.", output
|
|
end
|
|
end
|