Skip to content

Commit 0d21a97

Browse files
authored
Auto-update pre-commit hooks
1 parent 193256c commit 0d21a97

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ default_language_version:
33
exclude: ^(.github/|tests/test_data/abinit/)
44
repos:
55
- repo: https://github.com/charliermarsh/ruff-pre-commit
6-
rev: v0.4.4
6+
rev: v0.8.4
77
hooks:
88
- id: ruff
99
args: [--fix]
1010
- id: ruff-format
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v4.6.0
12+
rev: v5.0.0
1313
hooks:
1414
- id: check-yaml
1515
- id: fix-encoding-pragma
1616
args: [--remove]
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
1919
- repo: https://github.com/asottile/blacken-docs
20-
rev: 1.16.0
20+
rev: 1.19.1
2121
hooks:
2222
- id: blacken-docs
2323
additional_dependencies: [black]
@@ -30,17 +30,17 @@ repos:
3030
- id: rst-directive-colons
3131
- id: rst-inline-touching-normal
3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v1.10.0
33+
rev: v1.14.1
3434
hooks:
3535
- id: mypy
3636
files: ^src/
3737
additional_dependencies:
3838
- tokenize-rt==4.1.0
3939
- types-paramiko
4040
- repo: https://github.com/codespell-project/codespell
41-
rev: v2.2.6
41+
rev: v2.3.0
4242
hooks:
4343
- id: codespell
44-
stages: [commit, commit-msg]
44+
stages: [pre-commit, commit-msg]
4545
args: [--ignore-words-list, 'titel,statics,ba,nd,te,atomate']
4646
types_or: [python, rst, markdown]

src/atomate2/cli/dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,13 +600,13 @@ def save_abinit_maker(maker: Maker) -> None:
600600
author_mail = None
601601
if git:
602602
name = subprocess.run(
603-
"git config user.name".split(), # noqa: S603
603+
"git config user.name".split(),
604604
capture_output=True,
605605
encoding="utf-8",
606606
check=True,
607607
)
608608
mail = subprocess.run(
609-
"git config user.email".split(), # noqa: S603
609+
"git config user.email".split(),
610610
capture_output=True,
611611
encoding="utf-8",
612612
check=True,

tests/abinit/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def abinit_integration_tests(pytestconfig):
2727
return pytestconfig.getoption("abinit_integration")
2828

2929

30-
@pytest.fixture()
30+
@pytest.fixture
3131
def mock_abinit(mocker, abinit_test_dir, abinit_integration_tests):
3232
"""
3333
This fixture allows one to mock running ABINIT.

tests/aims/conftest.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def pytest_addoption(parser):
3434
)
3535

3636

37-
@pytest.fixture()
37+
@pytest.fixture
3838
def si():
3939
return Structure(
4040
lattice=Lattice(
@@ -45,7 +45,7 @@ def si():
4545
)
4646

4747

48-
@pytest.fixture()
48+
@pytest.fixture
4949
def o2():
5050
return Molecule(species=["O", "O"], coords=[[0, 0, 0.622978], [0, 0, -0.622978]])
5151

@@ -64,15 +64,15 @@ def ref_path():
6464
return test_dir.resolve()
6565

6666

67-
@pytest.fixture()
67+
@pytest.fixture
6868
def should_mock_aims(request):
6969
try:
7070
return not request.config.getoption("--generate-test-data")
7171
except ValueError:
7272
return True
7373

7474

75-
@pytest.fixture()
75+
@pytest.fixture
7676
def mock_aims(monkeypatch, ref_path, should_mock_aims):
7777
"""
7878
This fixture allows one to mock (fake) running FHI-aims.

tests/aims/test_files/test_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
TEST_DIR = Path(__file__).parent
88

99

10-
@pytest.fixture()
10+
@pytest.fixture
1111
def tmp_dir():
1212
"""Same as clean_dir but is fresh for every test"""
1313
import os

tests/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def clean_dir(debug_mode):
5050
shutil.rmtree(new_path)
5151

5252

53-
@pytest.fixture()
53+
@pytest.fixture
5454
def tmp_dir():
5555
"""Same as clean_dir but is fresh for every test"""
5656

@@ -79,7 +79,7 @@ def lpad(database, debug_mode):
7979
lpad.db[coll].drop()
8080

8181

82-
@pytest.fixture()
82+
@pytest.fixture
8383
def memory_jobstore():
8484
store = JobStore(MemoryStore(), additional_stores={"data": MemoryStore()})
8585
store.connect()
@@ -92,17 +92,17 @@ def log_to_stdout_auto_use():
9292
initialize_logger()
9393

9494

95-
@pytest.fixture()
95+
@pytest.fixture
9696
def si_structure(test_dir):
9797
return Structure.from_file(test_dir / "structures" / "Si.cif")
9898

9999

100-
@pytest.fixture()
100+
@pytest.fixture
101101
def sr_ti_o3_structure(test_dir):
102102
return Structure.from_file(test_dir / "structures" / "SrTiO3.cif")
103103

104104

105-
@pytest.fixture()
105+
@pytest.fixture
106106
def ba_ti_o3_structure(test_dir):
107107
return Structure.from_file(test_dir / "structures" / "BaTiO3.cif")
108108

tests/cp2k/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def cp2k_test_outputs(test_dir):
5656
return Path(test_dir / "cp2k").glob("*/outputs")
5757

5858

59-
@pytest.fixture()
59+
@pytest.fixture
6060
def mock_cp2k(monkeypatch, cp2k_test_dir):
6161
"""
6262
This fixture allows one to mock (fake) running CP2K.
@@ -169,7 +169,7 @@ def fake_run_cp2k(
169169
logger.info("Generated fake cp2k outputs")
170170

171171

172-
@pytest.fixture()
172+
@pytest.fixture
173173
def check_input():
174174
from pymatgen.io.cp2k.inputs import Cp2kInput
175175

tests/qchem/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def qchem_test_dir(test_dir):
3131
return test_dir / "qchem"
3232

3333

34-
@pytest.fixture()
34+
@pytest.fixture
3535
def mock_qchem(
3636
monkeypatch: MonkeyPatch, qchem_test_dir: Path
3737
) -> Generator[Callable[[Any, Any], Any], None, None]:

tests/vasp/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def lobster_test_dir(test_dir):
3838
return test_dir / "lobster"
3939

4040

41-
@pytest.fixture()
41+
@pytest.fixture
4242
def mock_vasp(
4343
monkeypatch: MonkeyPatch, vasp_test_dir: Path
4444
) -> Generator[Callable[[Any, Any], Any], None, None]:

tests/vasp/flows/test_electrode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from jobflow.settings import JobflowSettings
77

88

9-
@pytest.fixture()
9+
@pytest.fixture
1010
def mock_jobflow_settings(memory_jobstore):
1111
"""Set the UID_TYPE to "ulid" to make sure the documents can be sorted.
1212

0 commit comments

Comments
 (0)