What tools are used for Phyton code refactoring?

Our website is written on Phyton and before we start refactoring, I would like to make sure that we use optimal tools. We need to verifies which lines of code is dead and not used anymore and if there is any piece of code which generates output which is not used by any further process...
Who is Participating?
peprConnect With a Mentor Commented:
It depends on the tools that you use now and on the principles of the work in your team.

The "Bicycle Repair Man" (http://c2.com/cgi/wiki?BicycleRepairMan) is often mentioned (add on to Emacs, vim, IDLE, ...?)

When refactoring, it is always better when your project follows the principles of the Agile software development (http://en.wikipedia.org/wiki/Agile_software_development), namely when your project uses unit testing during the development.

Anyway, you will need to check and visualize your code. Probably the pylint (http://www.logilab.org/project/pylint and the suite mentioned in the "see also" at the page) can help you.

There also is Doxygen (http://www.doxygen.org/) that could help you to document and visualize your project. However, Python is one of the languages added to the supported ones. It was primarily designed for C++.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.