Skip to content

Some starter code to facilitate lessons on code maintenance and quality control, including refactoring and automated testing.

License

Notifications You must be signed in to change notification settings

prof-rossetti/codebase-cleanup-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codebase-cleanup-2021

Some starter code to facilitate lessons on code maintenance and quality control, including refactoring and automated testing. See the Exercise Instructions.

Setup

Create and activate a new virtual environment:

conda create -n cleanup-env python=3.8
conda activate cleanup-env

Copy the default products inventory (then optionally customize the resulting "products.csv" file with your own products as desired):

cp data/default_products.csv data/products.csv

Obtain your own AlphaVantage API Key, then create a new file called ".env" and place the following contents inside, replacing the placeholder with your own API Key:

# this is the .env file...

ALPHAVANTAGE_API_KEY="__________"

Installation

Install package dependencies:

pip install -r requirements.txt

Usage

Running the abbreviated shopping cart:

python -m app.shopping

Running the abbreviated game:

python -m app.game

Running the abbreviated robo advisor:

python -m app.robo

Testing

Running all tests:

pytest

About

Some starter code to facilitate lessons on code maintenance and quality control, including refactoring and automated testing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages