From bcfb5f47da3abc9d48fcfb9d87f965a23d08dbeb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:24:09 +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/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.10.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/24.10.0...26.1.0) - [github.com/pycqa/docformatter: v1.7.6 → v1.7.7](https://github.com/pycqa/docformatter/compare/v1.7.6...v1.7.7) - [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.19.1) - [github.com/pycqa/doc8: v1.1.2 → v2.0.0](https://github.com/pycqa/doc8/compare/v1.1.2...v2.0.0) - [github.com/pycqa/flake8: 7.1.1 → 7.3.0](https://github.com/pycqa/flake8/compare/7.1.1...7.3.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b08e7c6..9744021 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,15 +2,15 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files -- repo: https://github.com/psf/black - rev: 24.10.0 +- repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.1.0 hooks: - id: black args: [--safe, --line-length=100] @@ -19,27 +19,27 @@ repos: language_version: python3.11 - repo: https://github.com/pycqa/docformatter - rev: v1.7.6 + rev: v1.7.7 hooks: - id: docformatter additional_dependencies: [tomli] args: [--config, pyproject.toml] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.11.2 + rev: v1.19.1 hooks: - id: mypy additional_dependencies: [types-PyYAML, types-tqdm] - repo: https://github.com/pycqa/doc8 - rev: v1.1.2 + rev: v2.0.0 hooks: - id: doc8 files: ^docs/.*\.(rst|md)$ args: [--ignore, D001] - repo: https://github.com/pycqa/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 From 975ff885bae8e368dcef4756e4dd3c1eaeb213eb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Jan 2026 20:24:37 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- alea/ces_source.py | 7 ++----- alea/submitters/htcondor.py | 1 - alea/submitters/slurm.py | 1 - tests/test_gaussian_model.py | 1 - tests/test_runner.py | 1 - 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/alea/ces_source.py b/alea/ces_source.py index 4b082f3..cff7283 100644 --- a/alea/ces_source.py +++ b/alea/ces_source.py @@ -10,7 +10,6 @@ from multihist import Hist1d from alea.ces_transformation import Transformation - MINIMAL_ENERGY_RESOLUTION = 0.05 @@ -156,11 +155,9 @@ def _check_histogram(self, h: Hist1d): histogram_max = np.max(h.bin_edges) histogram_min = np.min(h.bin_edges) if self.min_e > histogram_max or self.max_e < histogram_min: - raise ValueError( - f"The histogram edge ({histogram_min},{histogram_max}) \ + raise ValueError(f"The histogram edge ({histogram_min},{histogram_max}) \ does not overlap with the analysis space ({self.min_e},{self.max_e}) \ - remove this background please:)" - ) + remove this background please:)") def _get_transformations(self): """Create and return all transformations to be applied.""" diff --git a/alea/submitters/htcondor.py b/alea/submitters/htcondor.py index 0859c22..b3d2580 100644 --- a/alea/submitters/htcondor.py +++ b/alea/submitters/htcondor.py @@ -29,7 +29,6 @@ from alea.submitter import Submitter from alea.utils import TEMPLATE_RECORDS, load_yaml, dump_yaml - DEFAULT_IMAGE = "/cvmfs/singularity.opensciencegrid.org/xenonnt/base-environment:latest" WORK_DIR = f"/scratch/{getpass.getuser()}/workflows" TOP_DIR = Path(__file__).resolve().parents[2] diff --git a/alea/submitters/slurm.py b/alea/submitters/slurm.py index 51321ba..6dab3e3 100644 --- a/alea/submitters/slurm.py +++ b/alea/submitters/slurm.py @@ -6,7 +6,6 @@ from alea.submitter import Submitter - # suggested default arguments for utilix.batchq.submit_job # for XENONnT collaboration BATCHQ_DEFAULT_ARGUMENTS = { diff --git a/tests/test_gaussian_model.py b/tests/test_gaussian_model.py index dc441e4..1348315 100644 --- a/tests/test_gaussian_model.py +++ b/tests/test_gaussian_model.py @@ -6,7 +6,6 @@ from alea.examples import GaussianModel - gaussian_model_parameter_definition = { "mu": { "fit_guess": 0.0, diff --git a/tests/test_runner.py b/tests/test_runner.py index 5570e46..46a2a3b 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -11,7 +11,6 @@ from .test_gaussian_model import gaussian_model_parameter_definition - COMPUTE_CONFIDENCE_INTERVAL = True