fossology / atarashi

Atarashi scans for license statements in open source software, focusing on text statistics. Designed to work stand-alone and with FOSSology.
http://fossology.github.io/atarashi
GNU General Public License v2.0
26 stars 23 forks source link

Create a unified entry point #15

Closed GMishx closed 6 years ago

GMishx commented 6 years ago

Create a unified entry point for every file using command line arguments instead of adding __main__ to every point. This will help in keeping code concise, easy to maintain and readable.

amanjain97 commented 6 years ago

Please explain what is a unified entry point.

GMishx commented 6 years ago

A single python file to test every other module.

Like if I want to check/test CommentExtractor.py I will call that file with a flag for testing CommentExtractor instead of calling the CommentExtractor.py itself. Similarly for every other module.

So there will be no __main__ in any python file except that unified control file.

Just like you are using pariksha to test 3 different modules, this file will help us to run every module from one place.

GMishx commented 6 years ago

Also this entry will help to load the CSV only once to the memory and pass the object to different modules. Currently every module needs to load the CSV at every run.

amanjain97 commented 6 years ago

Resolved with #30