Skip to content

Commit

Permalink
pre-commit autoupdate (#98)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
pre-commit-ci[bot] authored Apr 2, 2024
1 parent 5779484 commit 25d67b8
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
rev: v0.3.5
hooks:
- id: ruff
args: [--fix]
Expand All @@ -22,12 +22,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 24.1.1
rev: 24.3.0
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy

Expand Down
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 25d67b8

Please sign in to comment.