class Vulture < Formula include Language::Python::Virtualenv desc "Find dead Python code" homepage "https://github.com/jendrikseipp/vulture" url "https://files.pythonhosted.org/packages/8e/25/925f35db758a0f9199113aaf61d703de891676b082bd7cf73ea01d6000f7/vulture-2.14.tar.gz" sha256 "cb8277902a1138deeab796ec5bef7076a6e0248ca3607a3f3dee0b6d9e9b8415" license "MIT" head "https://github.com/jendrikseipp/vulture.git", branch: "main" bottle do rebuild 1 sha256 cellar: :any_skip_relocation, all: "98d42d8c72dd9ae09720b3bd04a9ba102157f120717d14ea706a965199ad4bf5" end depends_on "python@3.14" def install virtualenv_install_with_resources end test do assert_equal "vulture #{version}\n", shell_output("#{bin}/vulture --version") (testpath/"unused.py").write "class Unused: pass" assert_match "unused.py:1: unused class 'Unused'", shell_output("#{bin}/vulture #{testpath}/unused.py", 3) (testpath/"used.py").write "print(1+1)" assert_empty shell_output("#{bin}/vulture #{testpath}/used.py") end end