Scripts to show cyclomatic complexity of Python code in Vim and Emacs.
Python Emacs Lisp VimL
Latest commit 1343a2e Jul 12, 2013 @garybernhardt Merge pull request #9 from onjin/master
Added README.md with short descriptions, vim screenshot and vim install/usage
Permalink
Failed to load latest commit information.
grammar
pycomplexity.vim
tests
.gitignore
CONTRIBUTORS
README.md
TODO.txt
base.vim
build.py
complexity.py
linum.el
pycomplexity.el
runtests.py Added missing "runtests.py" script Nov 1, 2009

README.md

pycomplexity

Scripts to show cyclomatic complexity of Python code in Vim and Emacs.

Original vim script by Gary Bernhardt. Emacs support added by Ignas Mikalajūnas.

Patches contributed by:

  • Godefroid Chapelle
  • Steve Bedford
  • Chris Clark
  • Peter Prohaska

vim plugin

Vim plugin is in pycomplexity.vim directory vim python complexity

install vim plugin with NeoBundle

If you're using NeoBundle plugin manager you can add this into ~/.vimrc:

NeoBundle 'garybernhardt/pycomplexity', {'rtp': 'pycomplexity.vim/'}
" optional F6 mapping to fire :Complexity command
nnoremap <silent> <F6> :Complexity<CR>