Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Last active July 5, 2016 05:47
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/89f443db881a0cb0e8f3cc9fd0a57f82 to your computer and use it in GitHub Desktop.
Save tdsmith/89f443db881a0cb0e8f3cc9fd0a57f82 to your computer and use it in GitHub Desktop.
class Flake8Requirements < 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"
include Language::Python::Virtualenv
depends_on :python3
def install
virtualenv(libexec, "python3") do |venv|
venv.pip_install <<-EOS.undent
mccabe==0.4.0
pep8==1.7.0
pyflakes==1.0.0
EOS
venv.link_scripts(bin) { venv.pip_install "." }
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