Skip to content

Commit

Permalink
Merge pull request #424 from jdebacker/black
Browse files Browse the repository at this point in the history
Move to black code formatting
  • Loading branch information
bodiyang committed Mar 9, 2023
2 parents d29d94a + 619b008 commit db4056d
Show file tree
Hide file tree
Showing 9 changed files with 468 additions and 164 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# .git-blame-ignore-revs
# ignore initial move to black formatting
04ea4a46a67aa6a064e4e1ede5cb8e6fe824e4b2
15 changes: 15 additions & 0 deletions .github/workflows/check_black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

name: Check Black formatting

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@stable
with:
options: " --check"
src: "."
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions cps_stage2/stage2.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@


def main():
"""
"""
""" """
print("Reading Data")
cps = pd.read_csv(
Path(CUR_PATH, "..", "data", "cps_raw.csv.gz"), compression="gzip"
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ dependencies:
- pip
- pip:
- requests-html
- black
- jupyter-book>=0.9.1
596 changes: 448 additions & 148 deletions history/report_utils.py

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion puf_stage2/dataprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


def dataprep(puf, Stage_I_factors, Stage_II_targets, year):

print("Preparing coefficient matrix for year {} .....".format(year))

s006 = np.where(
Expand Down
1 change: 0 additions & 1 deletion puf_stage3/stage3.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def adjustment(agi, var, var_name, target, weights, blowup):
# In each year find the ratios to get the correct distribution
ratios_df = pd.DataFrame()
for year in range(start_year, end_year + 1):

goal_amts = goal_total[year][0] * distribution[year]

wt_year = "WT{}".format(year)
Expand Down
1 change: 0 additions & 1 deletion taxdata/cps/transform_sas.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def parse_sas(sas):


def main():

master_dict = {}
for year in CPS_META_DATA.keys():
# read in file text
Expand Down

0 comments on commit db4056d

Please sign in to comment.