Skip to content

Commit 63da3b2

Browse files
committed
precommit fixes
1 parent 42e8695 commit 63da3b2

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ extend-select = [
198198
ignore = [
199199
"PLR09", # Too many <...>
200200
"PLR2004", # Magic value used in comparison
201-
"PD901", # Bad variable name warning
202-
"UP038", # slows down code
203201
]
204202
# Uncomment if using a _compat.typing backport
205203
# typing-modules = ["invert4geom._compat.typing"]

src/invert4geom/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ def __call__(self, trial: optuna.trial) -> float:
26122612
residual_constraint_score,
26132613
residual_amplitude_score,
26142614
true_reg_score,
2615-
df,
2615+
_df,
26162616
) = cross_validation.regional_separation_score(
26172617
constraints_df=self.training_df,
26182618
testing_df=self.testing_df,

tests/test_inversion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def test_run_inversion():
777777
delta_l2_norm_tolerance=1.005,
778778
)
779779

780-
topo_results, grav_results, parameters, elapsed_time = results
780+
topo_results, _grav_results, _parameters, _elapsed_time = results
781781

782782
final_topography = topo_results.set_index(["northing", "easting"]).to_xarray().topo
783783
starting_topography = (

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def test_extract_prism_data():
546546
"""
547547
prism_layer = dummy_prism_layer()
548548
results = utils.extract_prism_data(prism_layer)
549-
prisms_df, prisms_ds, spacing, topo_grid = results
549+
_prisms_df, prisms_ds, spacing, topo_grid = results
550550
assert spacing == 200
551551
expected = np.array([[0.0, 0.0, 0.0], [-30.0, -30.0, -30.0], [30.0, 30.0, 30.0]])
552552
npt.assert_array_equal(expected, topo_grid)

0 commit comments

Comments
 (0)