| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This package is a simple implementation of linear regression between two variables: housing price against house area. The package contains the implementation of the algorithm and the unit tests for the algorithm. It is intended to be used as a guide for those who are developing a project in python.
First, clone the repository:
git clone ...Second, create the environment:
cd Python_Package_Project
make envThird, activate the environment:
source vLocalEnv/bin/activateFourth, install the package:
cd ..
pip install -e Python_Package_Projectwhere Python_Package_Project is the name of the directory where the package is located and it is installed in development mode (flag -e). For more information about the installation, please visit: https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/
The package was developed using Python 3.9.16 and make. The following packages are required to run the code:
For more information about the requirements, please visit the requirements.txt file.
For the development, the following packages were used:
For more information about the development requirements, please visit the requirements-dev.txt file.
This package use autoPEP8 to format the code. For more information about autoPEP8, please visit: https://peps.python.org/pep-0008/
The following commands are available for the development:
To generate the images base-line for the unit tests, run the following command:
pytest -k "TestGetPlotForBestFitLine" --mpl-generate-path tests/visualization/baselineThis image will be saved in the tests/visualization/baseline directory. To run the unit tests and compare the generated images with the base-line images, run the following command:
pytest -k "TestGetPlotForBestFitLine" --mplTo run the unit tests without make, run the following command:
pytest --mplTo generate the badges travis and codecov, please visit: https://docs.travis-ci.com/user/status-images/ and https://docs.codecov.io/docs/quick-start
| Back | FazBrowse Home | New Git URL |