O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Performing static analysis with Pyflakes

We will perform static analysis of part of the NumPy codebase. To do this, we will check out the code using Git. We will then run static analysis on part of the code using pyflakes.

How to do it...

To check out the NumPy code, we need Git. Installing Git is beyond the scope of this book (see http://git-scm.com/book/en/v2/Getting-Started-Installing-Git):

  1. The Git command to retrieve the code is as follows:
    $ git clone git://github.com/numpy/numpy.git numpy
    

    Alternatively, download a source archive from https://github.com/numpy/numpy.

  2. The previous step creates a numpy directory with the entire NumPy code. Go to this directory, and within it, run the following command:
    $ pyflakes *.py
    pavement.py:71: redefinition ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required