Skip to content

[pre-commit.ci] pre-commit autoupdate #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.15.0
hooks:
- id: mypy
exclude: ^tests/.*$
Expand Down
1 change: 1 addition & 0 deletions oteapi_asmod/strategies/function.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions oteapi_asmod/strategies/parse.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 1 addition & 2 deletions oteapi_asmod/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Some generic utility functions.
"""
"""Some generic utility functions."""


class OteapiAsmodError(Exception):
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup for OTE-API AtomScale MODels."""

import re
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Pytest fixtures for `strategies/`."""

from pathlib import Path

import pytest
Expand Down