From 38d600780c11f9dd362a049e1235bf103432945a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 18:37:30 +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/pre-commit/pre-commit-hooks: v4.1.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v6.0.0) - https://github.com/timothycrosley/isort → https://github.com/PyCQA/isort - [github.com/PyCQA/isort: 5.10.1 → 7.0.0](https://github.com/PyCQA/isort/compare/5.10.1...7.0.0) - https://github.com/ambv/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 21.12b0 → 25.12.0](https://github.com/psf/black-pre-commit-mirror/compare/21.12b0...25.12.0) - [github.com/PyCQA/bandit: 1.7.2 → 1.9.2](https://github.com/PyCQA/bandit/compare/1.7.2...1.9.2) - [github.com/pre-commit/mirrors-mypy: v0.931 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v0.931...v1.19.1) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f3f6af..fcaf730 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ # pre-commit autoupdate repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: debug-statements @@ -18,26 +18,26 @@ repos: - id: trailing-whitespace args: [--markdown-linebreak-ext=md] - - repo: https://github.com/timothycrosley/isort - rev: 5.10.1 + - repo: https://github.com/PyCQA/isort + rev: 7.0.0 hooks: - id: isort args: ["--profile", "black", "--filter-files", "--skip-gitignore"] - - repo: https://github.com/ambv/black - rev: 21.12b0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/PyCQA/bandit - rev: 1.7.2 + rev: 1.9.2 hooks: - id: bandit args: ["-r"] files: ^oteapi_asmod/.*$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v1.19.1 hooks: - id: mypy exclude: ^tests/.*$ From 805a7ae7656667db96db07cd003df683407b2680 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 Dec 2025 18:37:38 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- oteapi_asmod/strategies/function.py | 1 + oteapi_asmod/strategies/parse.py | 1 + oteapi_asmod/utils.py | 3 +-- setup.py | 1 + tasks.py | 1 + tests/conftest.py | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/oteapi_asmod/strategies/function.py b/oteapi_asmod/strategies/function.py index c80724d..921f355 100644 --- a/oteapi_asmod/strategies/function.py +++ b/oteapi_asmod/strategies/function.py @@ -1,4 +1,5 @@ """Function strategy class for mapping ase.Atoms to dlite metadata.""" + # pylint: disable=no-self-use,unused-argument import pathlib from dataclasses import dataclass diff --git a/oteapi_asmod/strategies/parse.py b/oteapi_asmod/strategies/parse.py index 6824381..694ec65 100644 --- a/oteapi_asmod/strategies/parse.py +++ b/oteapi_asmod/strategies/parse.py @@ -1,4 +1,5 @@ """Demo strategy class for text/json.""" + # pylint: disable=no-self-use,unused-argument from dataclasses import dataclass from typing import TYPE_CHECKING, Optional diff --git a/oteapi_asmod/utils.py b/oteapi_asmod/utils.py index e75b09c..dcffc27 100644 --- a/oteapi_asmod/utils.py +++ b/oteapi_asmod/utils.py @@ -1,5 +1,4 @@ -"""Some generic utility functions. -""" +"""Some generic utility functions.""" class OteapiAsmodError(Exception): diff --git a/setup.py b/setup.py index 17021d0..e8d228e 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup for OTE-API AtomScale MODels.""" + import re from pathlib import Path diff --git a/tasks.py b/tasks.py index b41ab8a..5bd447e 100644 --- a/tasks.py +++ b/tasks.py @@ -2,6 +2,7 @@ More information on `invoke` can be found at http://www.pyinvoke.org/. """ + # pylint: disable=import-outside-toplevel,too-many-locals import re import sys diff --git a/tests/conftest.py b/tests/conftest.py index 70c0030..3f4c5a3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ """Pytest fixtures for `strategies/`.""" + from pathlib import Path import pytest