- Run pylint - An extensible tool that checks if a module satisfies a given coding standard. Click here to read more about it.
- Secondly, If you have written unit test to check the logic of your code, the important thing his to make sure all test pass, and logic is fool proof. It is good idea to check the coverage. so use the line below from terminal $ python -m nose.core test_module.[TestingClass] --with-coverage
python -m nose.core --tests test_module.py -s --with-coverage - cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how long various parts of the program executed. Execute the line below to check: python -m cProfile python_moduleName.py -args1 -args2 .....
Have a look at python module filterList.py, you can use to run pyLint or test.