From 48ae99356c213809b3a5948c428cb40db5958ae2 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 21:19:25 +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 aded858..b5b4af0 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 c66ec945fe19f1e7246538c0b23ad2f91c73a46c 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 21:20:07 +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_modulation/__init__.py | 1 + src/spgrep_modulation/irreps.py | 1 + src/spgrep_modulation/isotropy.py | 1 + src/spgrep_modulation/modulation.py | 1 + src/spgrep_modulation/utils.py | 1 + src/spgrep_modulation/visualize.py | 1 + 6 files changed, 6 insertions(+) diff --git a/src/spgrep_modulation/__init__.py b/src/spgrep_modulation/__init__.py index 2664304..d803d6b 100644 --- a/src/spgrep_modulation/__init__.py +++ b/src/spgrep_modulation/__init__.py @@ -1,4 +1,5 @@ """Modulation analysis with irreps and isotropy subgroups.""" + from importlib.metadata import PackageNotFoundError, version # https://github.com/pypa/setuptools_scm/#retrieving-package-version-at-runtime diff --git a/src/spgrep_modulation/irreps.py b/src/spgrep_modulation/irreps.py index 4420200..a3adcc4 100644 --- a/src/spgrep_modulation/irreps.py +++ b/src/spgrep_modulation/irreps.py @@ -1,4 +1,5 @@ """Irreps for phonon.""" + from __future__ import annotations from typing import Literal diff --git a/src/spgrep_modulation/isotropy.py b/src/spgrep_modulation/isotropy.py index 7389f45..f296dce 100644 --- a/src/spgrep_modulation/isotropy.py +++ b/src/spgrep_modulation/isotropy.py @@ -1,4 +1,5 @@ """Isotropy subgroup of space group.""" + from __future__ import annotations from fractions import Fraction diff --git a/src/spgrep_modulation/modulation.py b/src/spgrep_modulation/modulation.py index 96eb14c..cd42ab3 100644 --- a/src/spgrep_modulation/modulation.py +++ b/src/spgrep_modulation/modulation.py @@ -1,4 +1,5 @@ """Modulation class.""" + from __future__ import annotations from warnings import warn diff --git a/src/spgrep_modulation/utils.py b/src/spgrep_modulation/utils.py index 8654321..e0f6696 100644 --- a/src/spgrep_modulation/utils.py +++ b/src/spgrep_modulation/utils.py @@ -1,4 +1,5 @@ """Utility functions.""" + from __future__ import annotations from fractions import Fraction diff --git a/src/spgrep_modulation/visualize.py b/src/spgrep_modulation/visualize.py index 5989840..5455d84 100644 --- a/src/spgrep_modulation/visualize.py +++ b/src/spgrep_modulation/visualize.py @@ -1,4 +1,5 @@ """Utilities for visualization in notebook.""" + from __future__ import annotations import math