Skip to content

Instantly share code, notes, and snippets.

@mitchellrj
Last active December 10, 2015 23:28
Show Gist options
  • Save mitchellrj/4509727 to your computer and use it in GitHub Desktop.
Save mitchellrj/4509727 to your computer and use it in GitHub Desktop.
Add a complexity analysis script to your buildout.
[buildout]
parts =
....
complexity
[complexity]
recipe = zc.recipe.egg
eggs = radon[tool]
scripts = radon=complexity
initialization =
sys.argv[1:1] = ['cc',] + list(map(str.strip, """${buildout:develop}""".splitlines()))
@mitchellrj
Copy link
Author

The list() is for Python 3, where map returns a generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment