From e17192cb54192b5f17bc4462e87b8f24630926f8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:02:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.4 → v0.5.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.4...v0.5.5) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ffa0612..95ac35ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: exclude: &exclude_pattern 'iv_weak_instruments.ipynb' args: ["--maxkb=1500"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.4 + rev: v0.5.5 hooks: # Run the linter - id: ruff From be82dd397831a303634c4e989db66a5860dcd012 Mon Sep 17 00:00:00 2001 From: Thomas Wiecki Date: Tue, 30 Jul 2024 10:42:32 +0200 Subject: [PATCH 2/2] Change type to isinstance checks --- causalpy/tests/test_synthetic_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/causalpy/tests/test_synthetic_data.py b/causalpy/tests/test_synthetic_data.py index 0eb66f2e..51da6a3e 100644 --- a/causalpy/tests/test_synthetic_data.py +++ b/causalpy/tests/test_synthetic_data.py @@ -26,7 +26,7 @@ def test_generate_multicell_geolift_data(): from causalpy.data.simulate_data import generate_multicell_geolift_data df = generate_multicell_geolift_data() - assert type(df) == pd.DataFrame + assert isinstance(df, pd.DataFrame) assert np.all(df >= 0), "Found negative values in dataset" @@ -37,5 +37,5 @@ def test_generate_geolift_data(): from causalpy.data.simulate_data import generate_geolift_data df = generate_geolift_data() - assert type(df) == pd.DataFrame + assert isinstance(df, pd.DataFrame) assert np.all(df >= 0), "Found negative values in dataset"