Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodi Yang committed Mar 11, 2024
1 parent d7957f2 commit 7c482e6
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions history/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Script used to automatically generate PDF report comparing TaxData outputs
after updates
"""

# flake8: noqa: E501
import argparse
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions history/report_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utility functions used by report.py
"""

import pypandoc
import pandas as pd
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions inithash.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This script creates the initial hashes for each stage 2 file
"""

import json
import hashlib
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions puf_stage1/factors_finalprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Transform Stage_I_factors.csv (written by the stage1.py script) and
benefit_growth_rates.csv into growfactors.csv (used by Tax-Calculator).
"""

import pandas as pd
import os

Expand Down
1 change: 1 addition & 0 deletions puf_stage1/updatecbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
there is a bug, it's probably because that assumption no longer holds true.
When this happens, modify the code as needed to account for this.
"""

import re
import requests
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions taxdata/cps/cps_meta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Holds all the CPS file metadata we need. Created to keep create.py clean
"""

C_TAM_YEARS = [2013, 2014, 2015] # years we have C-TAM imputations for

CPS_META_DATA = {
Expand Down
1 change: 1 addition & 0 deletions taxdata/cps/finalprep.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Clean up the CPS file and make it ready for Tax-Calculator
"""

import numpy as np
import pandas as pd
import copy
Expand Down
1 change: 1 addition & 0 deletions taxdata/cps/splitincome.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Split up certain income variables
"""

import numpy as np


Expand Down
1 change: 1 addition & 0 deletions taxdata/cps/targeting.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
State level targeting of certain income variables
"""

import pandas as pd
import numpy as np
from .constants import FIPS_DICT
Expand Down
1 change: 1 addition & 0 deletions taxdata/cps/transform_sas.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Scripts to convert the SAS scripts used to process the .DAT format CPS file
to Python
"""

import pickle
from pathlib import Path
from .cps_meta import CPS_META_DATA
Expand Down
1 change: 1 addition & 0 deletions taxdata/puf/impute_itmexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Non-Itemizers, 2011." (Comments below contain more detail on this
procedure.)
"""

from __future__ import print_function
import numpy as np
import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions taxdata/puf/impute_pencon.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
process twice. See the impute_pension_contributions() function code
for details.
"""

from __future__ import print_function
import sys
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions taxdata/puf/preppuf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Scripts to clean up the raw PUF before matching
"""

import numpy as np

# RECIDs for aggregate variables by PUF year
Expand Down
1 change: 1 addition & 0 deletions tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test CPS and PUF data file contents.
"""

import os
import pytest
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_ratios.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test PUF adjust-ratio file contents.
"""

import pytest


Expand Down
1 change: 1 addition & 0 deletions tests/test_weights.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test CPS and PUF weights file contents.
"""

import pytest
import numpy as np

Expand Down

0 comments on commit 7c482e6

Please sign in to comment.