cogent3 / c3dev

cogent3 developer tools
5 stars 9 forks source link

add a command line script that identifies function usage cases #1

Closed GavinHuttley closed 4 years ago

GavinHuttley commented 5 years ago

Original report by GavinH (Bitbucket: 557058:e40c23e1-e273-4527-a2f8-5de5876e870d, ).


We want a basic script that, given a path to a cogent3 python file, looks for the functions in that file and then all places where it's used in <PyCogent3>/cogent3 and <PyCogent3>/tests.

There may already be a python package for this. If not, use click to create a simple command line interface. See cleanup.py and it's corresponding hook in setup.py.