Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created June 12, 2016 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdsmith/cf2ef71adae2718075fef17bd9f6d938 to your computer and use it in GitHub Desktop.
Save tdsmith/cf2ef71adae2718075fef17bd9f6d938 to your computer and use it in GitHub Desktop.
class Flake8 < Formula
desc "Static analyzer for Python"
homepage "https://gitlab.com/pycqa/flake8"
url "https://files.pythonhosted.org/packages/60/4a/7b0ac4920af5673380b7079ba2f7580a8645790c7718881082c0d918b8b4/flake8-2.5.4.tar.gz"
sha256 "cc1e58179f6cf10524c7bfdd378f5536d0a61497688517791639a5ecc867492f"
resource "mccabe" do
url "https://files.pythonhosted.org/packages/f6/e7/54461a958bb8b16f8db5f849d5d08b7d74153e064ac385fb68ff09f0bd27/mccabe-0.4.0.tar.gz"
sha256 "9a2b12ebd876e77c72e41ebf401cc2e7c5b566649d50105ca49822688642207b"
end
resource "pep8" do
url "https://files.pythonhosted.org/packages/3e/b5/1f717b85fbf5d43d81e3c603a7a2f64c9f1dabc69a1e7745bd394cc06404/pep8-1.7.0.tar.gz"
sha256 "a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900"
end
resource "pyflakes" do
url "https://files.pythonhosted.org/packages/45/24/6bc038f3422bab08c24173c1990a56e9eb0c4582a9b202858a33f8aefeb8/pyflakes-1.0.0.tar.gz"
sha256 "f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263"
end
def install
Language::Python.virtualenv(self, libexec/"venv") do |venv|
venv.install_resources!(resources)
venv.install_path!(".", :link_scripts_into => bin)
end
end
test do
system bin/"flake8", "-v"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment