From 3e49bc68deccc27ee9ecf35b20a6eee9d7f9324b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:17:57 +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/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea9be57..fce7ada 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer # formatter - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black # linter From d0316cd55ad4776fbf780b0b4b32c0fc562c3371 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 17:18:10 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spgrep/__init__.py | 1 + src/spgrep/core.py | 1 + src/spgrep/corep.py | 1 + src/spgrep/group.py | 1 + src/spgrep/irreps.py | 1 + src/spgrep/pointgroup.py | 1 + src/spgrep/representation.py | 1 + src/spgrep/spinor.py | 1 + src/spgrep/tensor.py | 1 + src/spgrep/transform.py | 1 + src/spgrep/utils.py | 1 + 11 files changed, 11 insertions(+) diff --git a/src/spgrep/__init__.py b/src/spgrep/__init__.py index 44d1dd3..5b903f6 100644 --- a/src/spgrep/__init__.py +++ b/src/spgrep/__init__.py @@ -1,4 +1,5 @@ """Import top APIs and version.""" + from importlib.metadata import PackageNotFoundError, version from spgrep.core import ( # noqa: F401 diff --git a/src/spgrep/core.py b/src/spgrep/core.py index cfec5a7..112a1a8 100644 --- a/src/spgrep/core.py +++ b/src/spgrep/core.py @@ -1,4 +1,5 @@ """Enumerate unitary irreps from crystal structure or symmetry operations.""" + from __future__ import annotations from typing import Literal diff --git a/src/spgrep/corep.py b/src/spgrep/corep.py index 30786e3..b0fbafc 100644 --- a/src/spgrep/corep.py +++ b/src/spgrep/corep.py @@ -1,4 +1,5 @@ """Spin co-representation.""" + from __future__ import annotations from typing import Literal diff --git a/src/spgrep/group.py b/src/spgrep/group.py index e14f8a5..67e82ff 100644 --- a/src/spgrep/group.py +++ b/src/spgrep/group.py @@ -1,4 +1,5 @@ """Group-theory related functions.""" + from __future__ import annotations from itertools import product diff --git a/src/spgrep/irreps.py b/src/spgrep/irreps.py index 01af43f..1aae7d9 100644 --- a/src/spgrep/irreps.py +++ b/src/spgrep/irreps.py @@ -1,4 +1,5 @@ """On-the-fly irreps generations.""" + from __future__ import annotations from itertools import product diff --git a/src/spgrep/pointgroup.py b/src/spgrep/pointgroup.py index ba0a420..0fde970 100644 --- a/src/spgrep/pointgroup.py +++ b/src/spgrep/pointgroup.py @@ -1,4 +1,5 @@ """Decomposition of crystallographic point groups as solvable groups.""" + from __future__ import annotations import numpy as np diff --git a/src/spgrep/representation.py b/src/spgrep/representation.py index a23f0c5..63e1ce1 100644 --- a/src/spgrep/representation.py +++ b/src/spgrep/representation.py @@ -1,4 +1,5 @@ """Representation-matrix related implementations.""" + from __future__ import annotations from itertools import product diff --git a/src/spgrep/spinor.py b/src/spgrep/spinor.py index fdab9f8..6948a7b 100644 --- a/src/spgrep/spinor.py +++ b/src/spgrep/spinor.py @@ -1,4 +1,5 @@ """Spin representation.""" + from __future__ import annotations from itertools import product diff --git a/src/spgrep/tensor.py b/src/spgrep/tensor.py index 00cb7f4..845718a 100644 --- a/src/spgrep/tensor.py +++ b/src/spgrep/tensor.py @@ -1,4 +1,5 @@ """Symmetric tensor.""" + from __future__ import annotations from itertools import permutations, product diff --git a/src/spgrep/transform.py b/src/spgrep/transform.py index d7d9082..c31dcae 100644 --- a/src/spgrep/transform.py +++ b/src/spgrep/transform.py @@ -1,4 +1,5 @@ """Transformation of space group and kpoints.""" + from __future__ import annotations from typing import Literal diff --git a/src/spgrep/utils.py b/src/spgrep/utils.py index 00a69c5..8fe16ca 100644 --- a/src/spgrep/utils.py +++ b/src/spgrep/utils.py @@ -1,4 +1,5 @@ """Utility functions.""" + from __future__ import annotations from typing import Any, Literal