From 3b5b149b77e9306841822a62bd44a994bf19aa90 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:29:42 +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: v4.6.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.6.3 → v0.12.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.3...v0.12.10) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml old mode 100755 new mode 100644 index 0b233c4b..b566216b --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: [--maxkb=8192] @@ -13,7 +13,7 @@ repos: - id: trailing-whitespace exclude: "tests/cis_tests/.*" - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.3 + rev: v0.12.10 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -21,7 +21,7 @@ repos: - id: ruff-format exclude: "tests/cis_tests/.*" - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell exclude: "notebooks/" From 595136bf1d4fdda94c1e4b5f9ceeaa1a715ebf88 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:30:08 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- util/installation_check.py | 3 +-- white_beam.ipynb | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/util/installation_check.py b/util/installation_check.py index 2ffdc8fa..8c210936 100755 --- a/util/installation_check.py +++ b/util/installation_check.py @@ -51,8 +51,7 @@ print("All required packages installed") else: print( - "Please install these missing packages " - "to be able to run the Imaging Notebooks." + "Please install these missing packages to be able to run the Imaging Notebooks." ) missing = [k for k, v in import_result.items() if not v] print("\t" + "\n\t".join(missing)) diff --git a/white_beam.ipynb b/white_beam.ipynb index aa17f402..9c5a8051 100755 --- a/white_beam.ipynb +++ b/white_beam.ipynb @@ -227,15 +227,18 @@ "# this is using the hsnt kernel conda environment\n", "\n", "import warnings\n", - "warnings.filterwarnings('ignore')\n", + "\n", + "warnings.filterwarnings(\"ignore\")\n", "\n", "%matplotlib inline\n", "\n", "from __code.white_beam import WhiteBeam\n", "\n", "from __code import system\n", + "\n", "system.System.select_working_dir()\n", "from __code.__all import custom_style\n", + "\n", "custom_style.style()" ] },