File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ default_language_version:
3
3
exclude : ' ^.github/'
4
4
repos :
5
5
- repo : https://github.com/charliermarsh/ruff-pre-commit
6
- rev : v0.0.284
6
+ rev : v0.0.287
7
7
hooks :
8
8
- id : ruff
9
9
args : [--fix]
@@ -20,19 +20,19 @@ repos:
20
20
hooks :
21
21
- id : black
22
22
- repo : https://github.com/asottile/blacken-docs
23
- rev : 1.15 .0
23
+ rev : 1.16 .0
24
24
hooks :
25
25
- id : blacken-docs
26
26
additional_dependencies : [black]
27
27
exclude : README.md
28
28
- repo : https://github.com/pycqa/flake8
29
- rev : 6.0 .0
29
+ rev : 6.1 .0
30
30
hooks :
31
31
- id : flake8
32
32
entry : pflake8
33
33
files : ^src/
34
34
additional_dependencies :
35
- - pyproject-flake8==6.0.0
35
+ - pyproject-flake8==6.0.0a1
36
36
- flake8-bugbear==22.12.6
37
37
- flake8-typing-imports==1.14.0
38
38
- flake8-docstrings==1.6.0
46
46
- id : rst-directive-colons
47
47
- id : rst-inline-touching-normal
48
48
- repo : https://github.com/pre-commit/mirrors-mypy
49
- rev : v1.5.0
49
+ rev : v1.5.1
50
50
hooks :
51
51
- id : mypy
52
52
files : ^src/
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def from_ase_compatible_result(
135
135
136
136
# NOTE: units for stresses were converted to kbar (* -10 from standard output)
137
137
# to comply with MP convention
138
- for i in range (0 , len (trajectory ["stresses" ])):
138
+ for i in range (len (trajectory ["stresses" ])):
139
139
trajectory ["stresses" ][i ] = trajectory ["stresses" ][i ] * - 10
140
140
141
141
species = AseAtomsAdaptor .get_structure (trajectory ["atoms" ]).species
@@ -173,7 +173,7 @@ def from_ase_compatible_result(
173
173
n_steps = len (trajectory ["energies" ])
174
174
175
175
ionic_steps = []
176
- for i in range (0 , n_steps ):
176
+ for i in range (n_steps ):
177
177
cur_energy = (
178
178
trajectory ["energies" ][i ] if "energy" in ionic_step_data else None
179
179
)
You can’t perform that action at this time.
0 commit comments