Skip to content

Commit

Permalink
pre-commit auto-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 21, 2024
1 parent bc46c8a commit 6a1b45f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions pymatgen/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
is also provided to enable the easy translation of MongoDB docs to useful
pymatgen objects for analysis purposes.
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/alchemy/tests/test_transmuters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Created on Mar 5, 2012
"""

from __future__ import annotations

__author__ = "Shyue Ping Ong"
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/alchemy/transmuters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
TransformedStructures from DB data sources. They enable the
high-throughput generation of new structures and input files.
"""

from __future__ import annotations

__author__ = "Shyue Ping Ong"
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# access dict of parsed conf. settings
settings = cfg1.settings.
"""

from __future__ import annotations

import os
Expand Down
2 changes: 1 addition & 1 deletion pymatgen/db/creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module defines a Drone to assimilate vasp data and insert it into a
Mongo database.
"""

from __future__ import annotations

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

Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/matproj.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
See https://medium.com/@shyuep/a-local-materials-project-database-1ea909430c95
"""

from __future__ import annotations

import itertools
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/query_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module provides a QueryEngine that simplifies queries for Mongo databases
generated using hive.
"""

from __future__ import annotations

__author__ = "Shyue Ping Ong, Michael Kocher, Dan Gunter"
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Common functions for tests
"""

from __future__ import annotations

__author__ = "Dan Gunter <[email protected]>"
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/tests/test_creator_and_query_engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Created on Jun 19, 2012
"""

from __future__ import annotations

import os
Expand Down
1 change: 1 addition & 0 deletions pymatgen/db/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions used across scripts."""

from __future__ import annotations

import datetime
Expand Down

0 comments on commit 6a1b45f

Please sign in to comment.