Skip to content

Commit 8b75850

Browse files
authored
Merge pull request #102 from materialsproject/pre-commit-ci-update-config
pre-commit autoupdate
2 parents 6e4321c + 8da1c50 commit 8b75850

5 files changed

Lines changed: 10 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
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.12.11
11+
rev: v0.14.7
1212
hooks:
1313
- id: ruff
1414
args: [--fix, --unsafe-fixes]
@@ -22,7 +22,7 @@ repos:
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.17.1
25+
rev: v1.19.0
2626
hooks:
2727
- id: mypy
2828

@@ -36,19 +36,19 @@ repos:
3636
exclude: src/pymatgen/analysis/aflow_prototypes.json
3737

3838
- repo: https://github.com/MarcoGorelli/cython-lint
39-
rev: v0.16.7
39+
rev: v0.18.1
4040
hooks:
4141
- id: cython-lint
4242
args: [--no-pycodestyle]
4343
- id: double-quote-cython-strings
4444

4545
- repo: https://github.com/adamchainz/blacken-docs
46-
rev: 1.19.1
46+
rev: 1.20.0
4747
hooks:
4848
- id: blacken-docs
4949

5050
- repo: https://github.com/igorshubovych/markdownlint-cli
51-
rev: v0.45.0
51+
rev: v0.46.0
5252
hooks:
5353
- id: markdownlint
5454
# MD013: line too long
@@ -59,12 +59,12 @@ repos:
5959
args: [--disable, MD013, MD024, MD025, MD033, MD041, "--"]
6060

6161
- repo: https://github.com/kynan/nbstripout
62-
rev: 0.8.1
62+
rev: 0.8.2
6363
hooks:
6464
- id: nbstripout
6565
args: [--drop-empty-cells, --keep-output]
6666

6767
- repo: https://github.com/RobertCraigie/pyright-python
68-
rev: v1.1.404
68+
rev: v1.1.407
6969
hooks:
7070
- id: pyright

src/pymatgen/db/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import multiprocessing
1010
import sys
1111

12+
from pymatgen.apps.borg.queen import BorgQueen
1213
from pymongo import ASCENDING, MongoClient
1314

14-
from pymatgen.apps.borg.queen import BorgQueen
1515
from pymatgen.db import SETTINGS
1616

1717
from .config import DBConfig, get_settings

src/pymatgen/db/creator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import numpy as np
2222
from monty.io import zopen
2323
from monty.json import MontyEncoder
24-
from pymongo import MongoClient
25-
2624
from pymatgen.analysis.bond_valence import BVAnalyzer
2725
from pymatgen.analysis.local_env import VoronoiNN
2826
from pymatgen.analysis.structure_analyzer import oxide_type
@@ -34,6 +32,7 @@
3432
from pymatgen.io.cif import CifWriter
3533
from pymatgen.io.vasp import Incar, Kpoints, Oszicar, Outcar, Poscar, Potcar, Vasprun
3634
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
35+
from pymongo import MongoClient
3736

3837
__author__ = "Shyue Ping Ong"
3938
__copyright__ = "Copyright 2012, The Materials Project"
@@ -587,7 +586,7 @@ def get_valid_paths(self, path):
587586
3. Directories containing vasp output with ".relax1" and ".relax2" are
588587
also considered as 2 parts of an aflow style run.
589588
"""
590-
(parent, subdirs, files) = path
589+
(parent, subdirs, _files) = path
591590
if set(self.runs).intersection(subdirs):
592591
return [parent]
593592
if (

src/pymatgen/db/matproj.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import itertools
1010

1111
import pymongo
12-
1312
from pymatgen.entries.computed_entries import ComputedStructureEntry
1413
from pymatgen.ext.matproj import MPRester
1514

src/pymatgen/db/query_engine.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import gridfs
2525
import pymongo
26-
2726
from pymatgen.core import Composition, Structure
2827
from pymatgen.electronic_structure.core import Orbital, Spin
2928
from pymatgen.electronic_structure.dos import CompleteDos, Dos

0 commit comments

Comments
 (0)