Skip to content

Commit

Permalink
fix: fix CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiegel committed Mar 3, 2025
1 parent 64ddc0d commit 0a0ee31
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
persist-credentials: false

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ codecov
pytest-cov
pytest-spark
nbval
ipython<9
pyarrow
twine>=3.1.1
kaggle
3 changes: 2 additions & 1 deletion src/ydata_profiling/model/alerts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""Logic for alerting the user on possibly problematic patterns in the data (e.g. high number of zeros , constant
values, high correlations)."""

from enum import Enum, auto, unique
from typing import Any, Dict, List, Optional, Set
from typing import Dict, List, Optional, Set

import numpy as np
import pandas as pd
Expand Down
6 changes: 1 addition & 5 deletions src/ydata_profiling/model/pandas/summary_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@


def _is_cast_type_defined(typeset: VisionsTypeset, series: str) -> bool:
return (
isinstance(typeset, ProfilingTypeSet)
and typeset.type_schema
and series in typeset.type_schema
)
return isinstance(typeset, ProfilingTypeSet) and series in typeset.type_schema


@describe_1d.register
Expand Down
3 changes: 2 additions & 1 deletion src/ydata_profiling/utils/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common util functions (e.g. missing in Python)."""

import collections.abc
import contextlib
import os
Expand Down Expand Up @@ -165,7 +166,7 @@ def calculate_nrows(df):
).collect()[0]
* n_partitions
)
except:
except Exception:
nrows = 0

return nrows

0 comments on commit 0a0ee31

Please sign in to comment.