From 58ad29b1a051346babf42be21d2fa6a1bcab07fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 22:12:18 +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: - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 24.4.2 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/24.4.2...26.3.1) - [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) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63efa43..f50d9b9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - - repo: https://github.com/psf/black - rev: 24.4.2 # Replace by any tag/version: https://github.com/psf/black/tags + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 # Replace by any tag/version: https://github.com/psf/black/tags hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ args: ["--line-length", "99"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v6.0.0 hooks: - id: trailing-whitespace exclude: datasets|.data$ From 82c6bdd40184a54f561fd966f1016b7cdd756d10 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 22:16:58 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/example.py | 1 - scripts/example2.py | 1 - scripts/example3.py | 1 - scripts/example4.py | 1 - scripts/example5.py | 1 - scripts/example6.py | 1 - scripts/example7.py | 1 - tests/test_lasers.py | 1 - 8 files changed, 8 deletions(-) diff --git a/scripts/example.py b/scripts/example.py index 2ca9f80..0ed045b 100644 --- a/scripts/example.py +++ b/scripts/example.py @@ -4,7 +4,6 @@ import numpy as np import os - """ Following example shows how the phasematching (M) factors can be calculated in a 2_dimensional manner and converted to a WrightTools data object. Other methods can be employed such as use in a WrightSim object or in other simulations. The other methods found in the phasematching script diff --git a/scripts/example2.py b/scripts/example2.py index ae399eb..9e11f2f 100644 --- a/scripts/example2.py +++ b/scripts/example2.py @@ -5,7 +5,6 @@ import os from sympy import * - filepath = os.path.join(os.getcwd(), "tests") lay1file = os.path.join(filepath, "CaF2_Malitson.txt") diff --git a/scripts/example3.py b/scripts/example3.py index 3ab65d5..cd04677 100644 --- a/scripts/example3.py +++ b/scripts/example3.py @@ -5,7 +5,6 @@ import os from sympy import * - """Example 3. Simulation of a map of expected angles to achieve phasematching in the liquid layer of a multilayer cell. Plots separate both possible solutions (negative and positive).""" diff --git a/scripts/example4.py b/scripts/example4.py index 8552f2a..28cf89c 100644 --- a/scripts/example4.py +++ b/scripts/example4.py @@ -5,7 +5,6 @@ import os from sympy import * - filepath = os.path.join(os.getcwd(), "tests") lay1file = os.path.join(filepath, "CH3CN_paste_1.txt") lay2file = os.path.join(filepath, "sapphire1.txt") diff --git a/scripts/example5.py b/scripts/example5.py index 19e1b25..e28e89d 100644 --- a/scripts/example5.py +++ b/scripts/example5.py @@ -5,7 +5,6 @@ import os from sympy import * - filepath = os.path.join(os.getcwd(), "tests") lay3file = os.path.join(filepath, "CaF2_Malitson.txt") lay4file = os.path.join(filepath, "CH3CN_paste_1.txt") diff --git a/scripts/example6.py b/scripts/example6.py index 4b515df..413aaae 100644 --- a/scripts/example6.py +++ b/scripts/example6.py @@ -5,7 +5,6 @@ import os from sympy import * - filepath = os.path.join(os.getcwd(), "tests") lay3file = os.path.join(filepath, "CaF2_Malitson.txt") lay4file = os.path.join(filepath, "CH3CN_paste_1.txt") diff --git a/scripts/example7.py b/scripts/example7.py index c2e4380..4628f83 100644 --- a/scripts/example7.py +++ b/scripts/example7.py @@ -5,7 +5,6 @@ import os from sympy import * - filepath = os.path.join(os.getcwd(), "tests") lay1file = os.path.join(filepath, "sapphire1.txt") lay2file = os.path.join(filepath, "H2O_1.txt") diff --git a/tests/test_lasers.py b/tests/test_lasers.py index 68c82d4..e501ca2 100644 --- a/tests/test_lasers.py +++ b/tests/test_lasers.py @@ -1,7 +1,6 @@ import phasematching_calc as pc import os - """Test Requires R/W permissions in tests folder."""