Skip to content

Commit 25d67b8

Browse files
pre-commit autoupdate (#98)
* pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.3.5](astral-sh/ruff-pre-commit@v0.2.0...v0.3.5) - [github.com/psf/black: 24.1.1 → 24.3.0](psf/black@24.1.1...24.3.0) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0) * pre-commit auto-fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5779484 commit 25d67b8

11 files changed

+13
-4
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.2.0
11+
rev: v0.3.5
1212
hooks:
1313
- id: ruff
1414
args: [--fix]
@@ -22,12 +22,12 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/psf/black
25-
rev: 24.1.1
25+
rev: 24.3.0
2626
hooks:
2727
- id: black
2828

2929
- repo: https://github.com/pre-commit/mirrors-mypy
30-
rev: v1.8.0
30+
rev: v1.9.0
3131
hooks:
3232
- id: mypy
3333

pymatgen/db/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
is also provided to enable the easy translation of MongoDB docs to useful
77
pymatgen objects for analysis purposes.
88
"""
9+
910
from __future__ import annotations
1011

1112
import os

pymatgen/db/alchemy/tests/test_transmuters.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Created on Mar 5, 2012
33
"""
4+
45
from __future__ import annotations
56

67
__author__ = "Shyue Ping Ong"

pymatgen/db/alchemy/transmuters.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
TransformedStructures from DB data sources. They enable the
44
high-throughput generation of new structures and input files.
55
"""
6+
67
from __future__ import annotations
78

89
__author__ = "Shyue Ping Ong"

pymatgen/db/config.py

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# access dict of parsed conf. settings
1010
settings = cfg1.settings.
1111
"""
12+
1213
from __future__ import annotations
1314

1415
import os

pymatgen/db/creator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module defines a Drone to assimilate vasp data and insert it into a
33
Mongo database.
44
"""
5+
56
from __future__ import annotations
67

78
import datetime
@@ -320,7 +321,6 @@ def post_process(self, dir_name, d):
320321
d["icsd_id"] = int(m.group(1))
321322
except Exception:
322323
logger.warning("Cannot parse ICSD from transformations file.")
323-
pass
324324
else:
325325
logger.warning("Transformations file does not exist.")
326326

pymatgen/db/matproj.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
See https://medium.com/@shyuep/a-local-materials-project-database-1ea909430c95
55
"""
6+
67
from __future__ import annotations
78

89
import itertools

pymatgen/db/query_engine.py

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This module provides a QueryEngine that simplifies queries for Mongo databases
33
generated using hive.
44
"""
5+
56
from __future__ import annotations
67

78
__author__ = "Shyue Ping Ong, Michael Kocher, Dan Gunter"

pymatgen/db/tests/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Common functions for tests
33
"""
4+
45
from __future__ import annotations
56

67
__author__ = "Dan Gunter <[email protected]>"

pymatgen/db/tests/test_creator_and_query_engine.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Created on Jun 19, 2012
33
"""
4+
45
from __future__ import annotations
56

67
import os

pymatgen/db/util.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Utility functions used across scripts."""
2+
23
from __future__ import annotations
34

45
import datetime

0 commit comments

Comments
 (0)