Skip to content

Commit e46ea65

Browse files
[pre-commit.ci] pre-commit autoupdate (#213)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.4 → v0.13.2](astral-sh/ruff-pre-commit@v0.12.4...v0.13.2) - [github.com/pre-commit/mirrors-mypy: v1.17.0 → v1.18.2](pre-commit/mirrors-mypy@v1.17.0...v1.18.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5fa5841 commit e46ea65

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.12.4
4+
rev: v0.13.2
55
hooks:
66
# Run the linter.
77
- id: ruff
88
args: [ --fix, --unsafe-fixes]
99
# Run the formatter.
1010
- id: ruff-format
1111
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: v1.17.0
12+
rev: v1.18.2
1313
hooks:
1414
- id: mypy
1515
files: ^pymatgen/

docs/source/content/freysoldt-correction.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"\n",
137137
"def comparison_plots(q):\n",
138138
" \"\"\"\"\"\"\n",
139-
" fig, axs = plt.subplots(3, 2, figsize=(15, 15), sharey=True)\n",
139+
" _fig, axs = plt.subplots(3, 2, figsize=(15, 15), sharey=True)\n",
140140
" for direction in range(3):\n",
141141
" plot_sxd_output(\n",
142142
" q,\n",

docs/source/content/photo-conduct.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
" spin_idx = _get_spin_idx(k)\n",
123123
" for kpt in range(spin_eigs.shape[0]):\n",
124124
" for ib in range(fermi_idx - bwind, fermi_idx + bwind):\n",
125-
" e, o = spin_eigs[kpt, ib, :]\n",
125+
" e, _o = spin_eigs[kpt, ib, :]\n",
126126
" idx = (ib, kpt, spin_idx)\n",
127127
" e_out = f\"{e:7.4f}*\" if idx in defect_bands else f\"{e:8.5f}\"\n",
128128
" output[(ib)].append(e_out)\n",

pymatgen/analysis/defects/ccd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def plot_pes(
692692
if ax is None:
693693
from matplotlib import pyplot as plt
694694

695-
fig, ax = plt.subplots()
695+
_fig, ax = plt.subplots()
696696
ax.plot(
697697
np.array(hd.distortions) + x_shift,
698698
(np.array(hd.energies) - hd.energies[hd.relaxed_index]) + y_shift,

pymatgen/analysis/defects/supercells.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_matched_structure_mapping_old(
8484
s1, s2 = sm._process_species([uc_struct, sc_struct])
8585
fu, _ = sm._get_supercell_size(s1, s2)
8686
try:
87-
val, dist, sc_m, total_t, mapping = sm._strict_match(
87+
_val, _dist, sc_m, total_t, _mapping = sm._strict_match(
8888
s1,
8989
s2,
9090
fu=fu,

pymatgen/analysis/defects/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def cluster_nodes(
383383
else:
384384
fcoord = fcoords[j]
385385
# We need the image to combine the frac_coords properly.
386-
d, image = lattice.get_distance_and_image(frac_coords[0], fcoord)
386+
_d, image = lattice.get_distance_and_image(frac_coords[0], fcoord)
387387
frac_coords.append(fcoord + image)
388388
merged_fcoords.append(np.average(frac_coords, axis=0))
389389

0 commit comments

Comments
 (0)