From 77a40e510e73a950f0de2a4aaebc070bbe35fef9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 21:13:54 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.4 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.4...v0.12.2) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)/ From 3f66dfa40211c18f3675b3a32666f02f12b8580e Mon Sep 17 00:00:00 2001 From: Rhys Goodall Date: Thu, 7 Aug 2025 09:56:11 -0400 Subject: [PATCH 2/2] fix --- examples/matbench_example/prepare_matbench_datasets.py | 3 --- pyproject.toml | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) 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 ]