From 72538cc16fdaeec36a22c4b4c373f45032fa98a9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 20:10:05 +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/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) - [github.com/pycqa/isort: 5.13.2 → 6.0.0](https://github.com/pycqa/isort/compare/5.13.2...6.0.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.15.0) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.15.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6a3468c..92787f34 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,25 +3,25 @@ repos: - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.0 hooks: - id: isort name: isort (python) args: ["--profile", "black", "--filter-files", "--skip", "__init__.py"] files: ^dodiscover/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.13.0" + rev: "v1.15.0" hooks: - id: mypy name: mypy (dodiscover) args: ["--config-file", "pyproject.toml"] files: ^dodiscover/ - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.13.0" + rev: "v1.15.0" hooks: - id: mypy name: mypy (tests) From 978425bb746e5236d892743cd3887f3fd6d5611f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2025 20:10:28 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- dodiscover/ci/categorical_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dodiscover/ci/categorical_test.py b/dodiscover/ci/categorical_test.py index 733f62c3..ba457d86 100644 --- a/dodiscover/ci/categorical_test.py +++ b/dodiscover/ci/categorical_test.py @@ -57,7 +57,7 @@ def power_divergence( Returns a tuple (chi, p_value, dof). `chi` is the chi-squared test statistic. The `p_value` for the test, i.e. the probability of observing the computed chi-square statistic (or an even - higher value), given the null hypothesis that X \u27C2 Y | Zs is True. + higher value), given the null hypothesis that X \u27c2 Y | Zs is True. If boolean = True, returns True if the p_value of the test is greater than `significance_level` else returns False. @@ -112,11 +112,11 @@ def power_divergence( # If one of the values is 0 in the 2x2 table. if isinstance(z_state, str): logging.info( - f"Skipping the test {X} \u27C2 {Y} | {Z[0]}={z_state}. Not enough samples" + f"Skipping the test {X} \u27c2 {Y} | {Z[0]}={z_state}. Not enough samples" ) else: z_str = ", ".join([f"{var}={state}" for var, state in zip(Z, z_state)]) - logging.info(f"Skipping the test {X} \u27C2 {Y} | {z_str}. Not enough samples") + logging.info(f"Skipping the test {X} \u27c2 {Y} | {z_str}. Not enough samples") if np.isnan(c): raise RuntimeError(