Skip to content

Commit 71a5edc

Browse files
committed
bump ruff pre-commit to 0.3.0 + auto-fixes
1 parent c9dc8ee commit 71a5edc

40 files changed

Lines changed: 9 additions & 45 deletions

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ default_install_hook_types: [pre-commit, commit-msg]
77

88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.2.2
10+
rev: v0.3.0
1111
hooks:
1212
- id: ruff
1313
args: [--fix]
1414
- id: ruff-format
1515

1616
- repo: https://github.com/janosh/format-ipy-cells
17-
rev: v0.1.10
17+
rev: v0.1.11
1818
hooks:
1919
- id: format-ipy-cells
2020

@@ -80,7 +80,7 @@ repos:
8080
- id: check-github-actions
8181

8282
- repo: https://github.com/RobertCraigie/pyright-python
83-
rev: v1.1.351
83+
rev: v1.1.352
8484
hooks:
8585
- id: pyright
8686
args: [--level, error]

data/mp/build_phase_diagram.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
DFT-ground truth convex hull energies.
33
"""
44

5-
65
# %%
76
import gzip
87
import json

data/mp/eda_mp_trj.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""MPtrj exploratory data analysis (EDA)."""
22

3-
43
# %%
54
import io
65
import os

data/mp/get_mp_traj.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
all 1.6M task docs.
66
"""
77

8-
98
# %%
109
import os
1110
import subprocess

data/wbm/compile_wbm_test_set.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
https://nature.com/articles/s41524-020-00481-6
4040
"""
4141

42-
4342
# %% links to google drive files received via email from 1st author Hai-Chen Wang
4443
# on 2021-06-15 containing initial and relaxed structures
4544
google_drive_ids = {

models/chgnet/analyze_chgnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Compare CHGNet long vs short relaxations."""
22

3-
43
# %%
54
import os
65

models/chgnet/join_chgnet_results.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
into single file.
33
"""
44

5-
65
# %%
76
from __future__ import annotations
87

models/chgnet/test_chgnet.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
pip install -e ./chgnet.
66
"""
77

8-
98
# %%
109
from __future__ import annotations
1110

models/m3gnet/join_m3gnet_results.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
into single file.
33
"""
44

5-
65
# %%
76
from __future__ import annotations
87

models/m3gnet/pre_vs_post_m3gnet_relaxation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Compare M3GNet-relaxed vs DFT-relaxed WBM lattice volumes and angles."""
22

3-
43
# %%
54
import os
65

0 commit comments

Comments
 (0)