django-planet
July 11, 2023

Django: Clean up unused code with Vulture

published by Adam Johnson
in blog Adam Johnson
original entry Django: Clean up unused code with Vulture

As projects evolve, old functionality gets removed. Often such deletions are incomplete, leaving in their wake unused functions, classes, and other code objects. Unused code is clutter that brings no joy: it hinders comprehension, taxes codebase-wide quality improvements, and can sometimes lead to errors if later used.

In an ideal …