Skip to content

Commit 53c6df9

Browse files
authored
Merge branch 'master' into master
2 parents 3fdc20f + 4ffec03 commit 53c6df9

File tree

407 files changed

+3548
-2823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+3548
-2823
lines changed

.github/workflows/issue-metrics.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ permissions:
99

1010
jobs:
1111
build:
12+
# prevent this action from running on forks
13+
if: github.repository == 'materialsproject/pymatgen'
1214
name: issue metrics
1315
runs-on: ubuntu-latest
1416
permissions:

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ exclude: ^(docs|tests/files|tasks.py)
22

33
ci:
44
autoupdate_schedule: monthly
5-
skip: [ mypy, pyright ]
5+
skip: [mypy, pyright]
66
autofix_commit_msg: pre-commit auto-fixes
77
autoupdate_commit_msg: pre-commit autoupdate
88

99
repos:
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.5.4
11+
rev: v0.5.6
1212
hooks:
1313
- id: ruff
14-
args: [ --fix, --unsafe-fixes ]
14+
args: [--fix, --unsafe-fixes]
1515
- id: ruff-format
1616

1717
- repo: https://github.com/pre-commit/pre-commit-hooks
@@ -22,24 +22,24 @@ repos:
2222
- id: trailing-whitespace
2323

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

2929
- repo: https://github.com/codespell-project/codespell
3030
rev: v2.3.0
3131
hooks:
3232
- id: codespell
33-
stages: [ commit, commit-msg ]
34-
exclude_types: [ html ]
35-
additional_dependencies: [ tomli ] # needed to read pyproject.toml below py3.11
33+
stages: [commit, commit-msg]
34+
exclude_types: [html]
35+
additional_dependencies: [tomli] # needed to read pyproject.toml below py3.11
3636
exclude: src/pymatgen/analysis/aflow_prototypes.json
3737

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

4545
- repo: https://github.com/adamchainz/blacken-docs
@@ -56,15 +56,15 @@ repos:
5656
# MD033: no inline HTML
5757
# MD041: first line in a file should be a top-level heading
5858
# MD025: single title
59-
args: [ --disable, MD013, MD024, MD025, MD033, MD041, "--" ]
59+
args: [--disable, MD013, MD024, MD025, MD033, MD041, "--"]
6060

6161
- repo: https://github.com/kynan/nbstripout
6262
rev: 0.7.1
6363
hooks:
6464
- id: nbstripout
65-
args: [ --drop-empty-cells, --keep-output ]
65+
args: [--drop-empty-cells, --keep-output]
6666

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

dev_scripts/chemenv/explicit_permutations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import os
1111

1212
import numpy as np
13+
1314
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import (
1415
AllCoordinationGeometries,
1516
ExplicitPermutationsAlgorithm,

dev_scripts/chemenv/explicit_permutations_plane_algorithm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import json
1010

1111
import numpy as np
12+
1213
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import AllCoordinationGeometries
1314
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometry_finder import (
1415
AbstractGeometry,

dev_scripts/chemenv/get_plane_permutations_optimized.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
import numpy as np
1717
import tabulate
18+
1819
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import AllCoordinationGeometries
1920
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometry_finder import (
2021
AbstractGeometry,

dev_scripts/chemenv/strategies/multi_weights_strategy_parameters.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import matplotlib.pyplot as plt
1010
import numpy as np
11+
1112
from pymatgen.analysis.chemenv.coordination_environments.chemenv_strategies import (
1213
AngleNbSetWeight,
1314
CNBiasNbSetWeight,
@@ -50,7 +51,9 @@ def __init__(self, initial_environment_symbol, expected_final_environment_symbol
5051
self.abstract_geometry = AbstractGeometry.from_cg(self.coordination_geometry)
5152

5253
@classmethod
53-
def simple_expansion(cls, initial_environment_symbol, expected_final_environment_symbol, neighbors_indices):
54+
def simple_expansion(
55+
cls, initial_environment_symbol, expected_final_environment_symbol, neighbors_indices
56+
) -> CoordinationEnvironmentMorphing:
5457
"""Simple expansion of a coordination environment.
5558
5659
Args:

dev_scripts/chemenv/test_algos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from random import shuffle
99

1010
import numpy as np
11+
1112
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import AllCoordinationGeometries
1213
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometry_finder import (
1314
AbstractGeometry,

dev_scripts/chemenv/view_environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import numpy as np
6+
67
from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import (
78
SEPARATION_PLANE,
89
AllCoordinationGeometries,

dev_scripts/potcar_scrambler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import numpy as np
1010
from monty.os.path import zpath
1111
from monty.serialization import zopen
12+
1213
from pymatgen.core import SETTINGS
1314
from pymatgen.io.vasp import Potcar, PotcarSingle
1415
from pymatgen.io.vasp.sets import _load_yaml_config

dev_scripts/update_pt_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
import requests
1212
from monty.dev import requires
1313
from monty.serialization import dumpfn, loadfn
14-
from pymatgen.core import Element, get_el_sp
1514
from ruamel import yaml
1615

16+
from pymatgen.core import Element, get_el_sp
17+
1718
try:
1819
from bs4 import BeautifulSoup
1920
except ImportError:

0 commit comments

Comments
 (0)