From 484b282ea1cbe9be087404271fba580eb5fa3381 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:22:21 +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: 21.11b1 → 22.1.0](https://github.com/psf/black/compare/21.11b1...22.1.0) - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) - [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0) - [github.com/hadialqattan/pycln: v1.1.0 → v1.2.4](https://github.com/hadialqattan/pycln/compare/v1.1.0...v1.2.4) - [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.931](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.931) - [github.com/shellcheck-py/shellcheck-py: v0.8.0.1 → v0.8.0.4](https://github.com/shellcheck-py/shellcheck-py/compare/v0.8.0.1...v0.8.0.4) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 119df6a..22ad73f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 21.11b1 + rev: 22.1.0 hooks: - id: black-jupyter - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.1.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -36,7 +36,7 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v2.29.1 + rev: v2.31.0 hooks: - id: pyupgrade args: ["--py36-plus"] @@ -47,7 +47,7 @@ repos: - id: setup-cfg-fmt - repo: https://github.com/hadialqattan/pycln - rev: v1.1.0 + rev: v1.2.4 hooks: - id: pycln args: [--config=pyproject.toml] @@ -69,13 +69,13 @@ repos: additional_dependencies: *flake8_dependencies - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.910-1 + rev: v0.931 hooks: - id: mypy files: src - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.8.0.1 + rev: v0.8.0.4 hooks: - id: shellcheck From a6b3989f220c69554e38dfedcc2c13312260414e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:25:28 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/relaxed/ops/likelihood_gaussianity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relaxed/ops/likelihood_gaussianity.py b/src/relaxed/ops/likelihood_gaussianity.py index 6b9a4f2..33794f3 100644 --- a/src/relaxed/ops/likelihood_gaussianity.py +++ b/src/relaxed/ops/likelihood_gaussianity.py @@ -66,4 +66,4 @@ def gaussianity( )(gaussian_parspace_samples, bestfit_pars) diffs = relative_nlls_model - relative_nlls_gaussian - return jnp.nanmean(diffs ** 2, axis=0) + return jnp.nanmean(diffs**2, axis=0)