diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f3f6af..f699ec9 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: v5.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: 6.0.1 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 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/PyCQA/bandit - rev: 1.7.2 + rev: 1.8.3 hooks: - id: bandit args: ["-r"] files: ^oteapi_asmod/.*$ - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v1.16.0 hooks: - id: mypy exclude: ^tests/.*$ 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