diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f627e19..756a2e4f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.4 + rev: v0.12.2 hooks: - id: ruff args: [--fix] @@ -30,7 +30,7 @@ repos: args: [--check-filenames] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.16.1 hooks: - id: mypy exclude: (tests|examples)/ diff --git a/examples/matbench_example/prepare_matbench_datasets.py b/examples/matbench_example/prepare_matbench_datasets.py index 2ca4f588..be5bc632 100644 --- a/examples/matbench_example/prepare_matbench_datasets.py +++ b/examples/matbench_example/prepare_matbench_datasets.py @@ -1,6 +1,5 @@ import os from glob import glob -from typing import Literal from matbench.data_ops import load from pymatgen.analysis.prototypes import get_protostructure_label_from_spglib @@ -31,8 +30,6 @@ if SMOKE_TEST: matbench_datasets = matbench_datasets[2:3] -MatbenchDatasets = Literal[*matbench_datasets] - os.makedirs(f"{current_dir}/datasets", exist_ok=True) for dataset in matbench_datasets: dataset_path = f"{current_dir}/datasets/{dataset}.json.bz2" diff --git a/pyproject.toml b/pyproject.toml index 9dcf8a1c..829f271c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,6 +109,7 @@ ignore = [ "E731", # Do not assign a lambda expression, use a def "ISC001", "PD901", # pandas-df-variable-name + "PLC0415", "PLR", # pylint refactor "PT006", # pytest-parametrize-names-wrong-type ]