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$ 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."""