From 6862d98c0358e7bbb5a0f5d7768a7d4bef5727da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 20:13:44 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pymatgen/analysis/defects/ccd.py | 1 + pymatgen/analysis/defects/constants.py | 1 - pymatgen/analysis/defects/core.py | 1 + pymatgen/analysis/defects/finder.py | 1 + pymatgen/analysis/defects/plotting/optics.py | 1 + pymatgen/analysis/defects/plotting/phases.py | 1 + pymatgen/analysis/defects/thermo.py | 1 + pymatgen/analysis/defects/utils.py | 1 + 8 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pymatgen/analysis/defects/ccd.py b/pymatgen/analysis/defects/ccd.py index 9ffe926c..7ca30d6c 100644 --- a/pymatgen/analysis/defects/ccd.py +++ b/pymatgen/analysis/defects/ccd.py @@ -1,4 +1,5 @@ """Configuration-coordinate diagram analysis.""" + from __future__ import annotations import logging diff --git a/pymatgen/analysis/defects/constants.py b/pymatgen/analysis/defects/constants.py index 1a2bdfd9..ee7d0b7d 100644 --- a/pymatgen/analysis/defects/constants.py +++ b/pymatgen/analysis/defects/constants.py @@ -1,6 +1,5 @@ """Constants used in the Defects module.""" - import numpy as np from scipy import constants diff --git a/pymatgen/analysis/defects/core.py b/pymatgen/analysis/defects/core.py index ca075c97..2dbace60 100644 --- a/pymatgen/analysis/defects/core.py +++ b/pymatgen/analysis/defects/core.py @@ -1,4 +1,5 @@ """Classes representing defects.""" + from __future__ import annotations import collections diff --git a/pymatgen/analysis/defects/finder.py b/pymatgen/analysis/defects/finder.py index 68c06e73..92173e1d 100644 --- a/pymatgen/analysis/defects/finder.py +++ b/pymatgen/analysis/defects/finder.py @@ -1,4 +1,5 @@ """Defect position identification without prior knowledge.""" + from __future__ import annotations import logging diff --git a/pymatgen/analysis/defects/plotting/optics.py b/pymatgen/analysis/defects/plotting/optics.py index 683d2a93..c82660e3 100644 --- a/pymatgen/analysis/defects/plotting/optics.py +++ b/pymatgen/analysis/defects/plotting/optics.py @@ -1,4 +1,5 @@ """Plotting functions.""" + from __future__ import annotations import collections diff --git a/pymatgen/analysis/defects/plotting/phases.py b/pymatgen/analysis/defects/plotting/phases.py index 94742fb6..7aacb6c8 100644 --- a/pymatgen/analysis/defects/plotting/phases.py +++ b/pymatgen/analysis/defects/plotting/phases.py @@ -1,4 +1,5 @@ """Plotting functions for competing phases.""" + # %% from __future__ import annotations diff --git a/pymatgen/analysis/defects/thermo.py b/pymatgen/analysis/defects/thermo.py index 4cf70a02..d03a9431 100644 --- a/pymatgen/analysis/defects/thermo.py +++ b/pymatgen/analysis/defects/thermo.py @@ -1,4 +1,5 @@ """Classes and methods related to thermodynamics and energy.""" + from __future__ import annotations import collections diff --git a/pymatgen/analysis/defects/utils.py b/pymatgen/analysis/defects/utils.py index 524d96d0..b77bc220 100644 --- a/pymatgen/analysis/defects/utils.py +++ b/pymatgen/analysis/defects/utils.py @@ -1,4 +1,5 @@ """Utilities for defects module.""" + from __future__ import annotations import bisect