2019-10-20 10:00:13 +00:00
|
|
|
class Pylint < Formula
|
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
|
|
|
desc "It's not just a linter that annoys you!"
|
|
|
|
homepage "https://github.com/PyCQA/pylint"
|
2019-10-21 21:23:47 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/be/d8/334c1a5228bd300638147e62dce9c6966656fbee812b97cd0472b3eac09d/pylint-2.4.3.tar.gz"
|
|
|
|
sha256 "856476331f3e26598017290fd65bebe81c960e806776f324093a46b76fb2d1c0"
|
2019-10-20 10:00:13 +00:00
|
|
|
|
2019-10-20 13:21:18 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2019-10-21 23:02:06 +00:00
|
|
|
sha256 "1ecc01a14269a661882f30b6257d6e65535a76a87213ddbb9786628155eee562" => :catalina
|
|
|
|
sha256 "18793e78b002fdc3854a5200d33ac720c32d5889e0cbcdb797724659c0510fd2" => :mojave
|
|
|
|
sha256 "189e9f422c2bd28cab592059c014ebc1533e17bd2f05efc40bb7e7bb790b441e" => :high_sierra
|
2019-10-20 13:21:18 +00:00
|
|
|
end
|
|
|
|
|
2019-10-20 10:00:13 +00:00
|
|
|
depends_on "python"
|
|
|
|
|
|
|
|
resource "astroid" do
|
2019-10-21 21:23:47 +00:00
|
|
|
url "https://files.pythonhosted.org/packages/94/32/58db7000d735f1f6e4b60c8ae0137b96b227e3ec4b640d8cf28f16e5bf62/astroid-2.3.2.tar.gz"
|
|
|
|
sha256 "09a3fba616519311f1af8a461f804b68f0370e100c9264a035aa7846d7852e33"
|
2019-10-20 10:00:13 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "isort" do
|
|
|
|
url "https://files.pythonhosted.org/packages/43/00/8705e8d0c05ba22f042634f791a61f4c678c32175763dcf2ca2a133f4739/isort-4.3.21.tar.gz"
|
|
|
|
sha256 "54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "lazy-object-proxy" do
|
|
|
|
url "https://files.pythonhosted.org/packages/36/39/d9b7d05775c3d12fe49c1119f53e20adf81757bfd3840f30961a0d57e6d1/lazy-object-proxy-1.4.2.tar.gz"
|
|
|
|
sha256 "fd135b8d35dfdcdb984828c84d695937e58cc5f49e1c854eb311c4d6aa03f4f1"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "mccabe" do
|
|
|
|
url "https://files.pythonhosted.org/packages/06/18/fa675aa501e11d6d6ca0ae73a101b2f3571a565e0f7d38e062eec18a91ee/mccabe-0.6.1.tar.gz"
|
|
|
|
sha256 "dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "six" do
|
|
|
|
url "https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz"
|
|
|
|
sha256 "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "typed-ast" do
|
|
|
|
url "https://files.pythonhosted.org/packages/34/de/d0cfe2ea7ddfd8b2b8374ed2e04eeb08b6ee6e1e84081d151341bba596e5/typed_ast-1.4.0.tar.gz"
|
|
|
|
sha256 "66480f95b8167c9c5c5c87f32cf437d585937970f3fc24386f313a4c97b44e34"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "wrapt" do
|
|
|
|
url "https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz"
|
|
|
|
sha256 "565a021fd19419476b9362b05eeaa094178de64f8361e44468f9e9d7843901e1"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
virtualenv_install_with_resources
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"pylint_test.py").write <<~EOS
|
|
|
|
print('Test file'
|
|
|
|
)
|
|
|
|
EOS
|
|
|
|
system bin/"pylint", "--exit-zero", "pylint_test.py"
|
|
|
|
end
|
|
|
|
end
|