Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
albrja committed Aug 17, 2023
1 parent 1aa5677 commit 8aaebcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/pseudopeople/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def _coerce_dtypes(data: pd.DataFrame, dataset: Dataset):
return data


def _load_data_from_path(
data_path: Path, user_filters: List[Tuple]
) -> pd.DataFrame:
def _load_data_from_path(data_path: Path, user_filters: List[Tuple]) -> pd.DataFrame:
"""Load data from a data file given a data_path and a year_filter."""
data = load_standard_dataset_file(data_path, user_filters)
return data
Expand Down Expand Up @@ -434,7 +432,7 @@ def fetch_filepaths(dataset: Dataset, source: Path) -> Union[List, List[dict]]:


def validate_data_path_suffix(data_paths) -> None:

suffix = set(x.suffix for x in data_paths)
if len(suffix) > 1:
raise DataSourceError(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def split_sample_data_dir(tmpdir_factory):
data = pd.read_parquet(data_path)
# Split the sample dataset into two and save in tmpdir_factory
# We are spliting on household_id as a solution for how to keep households together
# for the tax 1040 dataset.
# for the tax 1040 dataset.
outdir = split_sample_data_dir.mkdir(dataset_name)
if dataset_name in [
DatasetNames.TAXES_1040,
Expand Down

0 comments on commit 8aaebcc

Please sign in to comment.