Closed maxim-belkin closed 3 years ago
@zkamvar @fmichonneau, OK for me to merge this one? (are there any questions or concerns?) I'd like to restructure our Python code a little bit and maybe convert it into a Python module (which we can pip install carpentries-<something>
) down the road.
I am all for splitting apart large scripts in to smaller modules! TIL about the __all__
list in python: https://docs.python.org/3/tutorial/modules.html#importing-from-a-package
Thank you, Maxim!
Thank you, Zhian!
The PR factors out the Reporter class into its own file. This should make
util.py
a bit easier to parse. --- The second change (defining__all__
inutil.py
) allows to usefrom util import *
to import the elements defined in__all__
.