Joshua-Data-Wizard / PyRealEstate

Creating a Library to help in the development and evaluation of real estate AVM's
MIT License
0 stars 1 forks source link

Code cleanup and formatting #1

Closed kdschlosser closed 10 months ago

kdschlosser commented 10 months ago

I did some code cleanup and formatting. I also added some sanity checks to the time models that would raise a RuntimeError if fit wasn't called first.

I commented out things that were unused so if they are needed in the future they can be uncommented.

I changed the indent to 4 spaces which is the norm for python code. It makes it easier to read. Code should also be limited to 80 characters per line. This is also another norm for Python code. Make is easier to read this way.

Changed line spacing between function and classes classes should have 2 blank lines both in front and in back of it. the same thing for functions. This only holds true at the module level, inside of a class there should be only a single blank line. before and after.

I didn't change any of the naming as to not break API. I will mention the norm is CaMeL case for classes with no underscores and for functions and instances of classes and variables either local or global should all be lower case with underscores where spaces would be.