Skip to content

Commit e3e707a

Browse files
[pre-commit.ci] pre-commit autoupdate (#104)
Co-authored-by: Rhys Goodall <[email protected]>
1 parent 67d1115 commit e3e707a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ci:
55

66
repos:
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.11.4
8+
rev: v0.12.2
99
hooks:
1010
- id: ruff
1111
args: [--fix]
@@ -30,7 +30,7 @@ repos:
3030
args: [--check-filenames]
3131

3232
- repo: https://github.com/pre-commit/mirrors-mypy
33-
rev: v1.15.0
33+
rev: v1.16.1
3434
hooks:
3535
- id: mypy
3636
exclude: (tests|examples)/

examples/matbench_example/prepare_matbench_datasets.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
from glob import glob
3-
from typing import Literal
43

54
from matbench.data_ops import load
65
from pymatgen.analysis.prototypes import get_protostructure_label_from_spglib
@@ -31,8 +30,6 @@
3130
if SMOKE_TEST:
3231
matbench_datasets = matbench_datasets[2:3]
3332

34-
MatbenchDatasets = Literal[*matbench_datasets]
35-
3633
os.makedirs(f"{current_dir}/datasets", exist_ok=True)
3734
for dataset in matbench_datasets:
3835
dataset_path = f"{current_dir}/datasets/{dataset}.json.bz2"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ ignore = [
109109
"E731", # Do not assign a lambda expression, use a def
110110
"ISC001",
111111
"PD901", # pandas-df-variable-name
112+
"PLC0415",
112113
"PLR", # pylint refactor
113114
"PT006", # pytest-parametrize-names-wrong-type
114115
]

0 commit comments

Comments
 (0)