christabor / random-ideas

Random project ideas that have not been implemented, for the world to see (and perhaps do, if interested!)
MIT License
2 stars 0 forks source link

A code refactoring tool for isolating constants to one module #9

Open christabor opened 6 years ago

christabor commented 6 years ago

A simple autolinter, in the spirit of auto-flake8, auto-pep8, that will take all the constants, and uppercased varialbes in a function/class, and move them all to one module (defaulting to constants.py) and then update all the references.

This would be great for refactoring, where you need to isolate some things to get a handle on really awful spaghetti code.