Skip to content

Commit

Permalink
lint update
Browse files Browse the repository at this point in the history
  • Loading branch information
31good committed Nov 18, 2024
1 parent c0e630c commit 98ed03a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,3 @@ test:
python -m pytest -cov=main test_main.py

all: install format lint test

transform:
python main.py transform "https://raw.githubusercontent.com/fivethirtyeight/data/master/alcohol-consumption/drinks.csv" "https://raw.githubusercontent.com/fivethirtyeight/data/master/drug-use-by-age/drug-use-by-age.csv"


query1:
python main.py general "INSERT INTO zw308_drink(country,beer_servings,spirit_servings,wine_servings, total_litres_of_pure_alcohol) VALUES('USC', 10,100,1000,0.1) "

query2:
python main.py general "UPDATE zw308_drink SET total_litres_of_pure_alcohol = -0.1 WHERE country = 'USA'"

query3:
python main.py general "SELECT tc.country, tc.total_beer_servings, u.age_group, u.alcohol_use, u.alcohol_frequency FROM (SELECT country, SUM(beer_servings) AS total_beer_servings FROM zw308_drink GROUP BY country ORDER BY total_beer_servings DESC LIMIT 5) AS tc JOIN zw308_drug_use u ON u.alcohol_use = (SELECT MAX(alcohol_use) FROM zw308_drug_use) ORDER BY tc.total_beer_servings DESC, u.alcohol_use DESC;"

setup:
python setup.py develop --user
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from mylib.extract import extract
from mylib.transform_load import load,transform_drinks,transform_drugs,save_to_db
from mylib.query_visual import visualize_query_results
import os

if __name__ == "__main__":
extract()
Expand Down
1 change: 0 additions & 1 deletion test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import requests
import os
import json
from dotenv import load_dotenv

def main_test(file_name):
Expand Down

0 comments on commit 98ed03a

Please sign in to comment.