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/" 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()" ] },