From 2351e86f0d4057f39a0f25f3a5baedfe2754638e Mon Sep 17 00:00:00 2001 From: Kai Wagoner-Oshima Date: Sat, 7 Jun 2025 01:31:35 -0400 Subject: [PATCH] skpkg: apply black to all files in the project directory --- src/diffpy/structure/apps/__init__.py | 3 +-- src/diffpy/structure/expansion/supercell_mod.py | 3 +-- src/diffpy/structure/mmlibspacegroups.py | 3 +-- src/diffpy/structure/parsers/p_discus.py | 3 +-- src/diffpy/structure/parsers/p_pdffit.py | 3 +-- src/diffpy/structure/parsers/p_xyz.py | 6 +++--- src/diffpy/structure/parsers/structureparser.py | 3 +-- src/diffpy/structure/pdffitstructure.py | 3 +-- src/diffpy/structure/spacegroupmod.py | 3 +-- src/diffpy/structure/structure.py | 3 +-- src/diffpy/structure/structureerrors.py | 3 +-- src/diffpy/structure/utils.py | 3 +-- tests/test_lattice.py | 3 +-- tests/test_loadstructure.py | 3 +-- tests/test_p_cif.py | 3 +-- tests/test_p_discus.py | 3 +-- tests/test_p_pdffit.py | 3 +-- tests/test_parsers.py | 3 +-- tests/test_spacegroups.py | 3 +-- tests/test_structure.py | 3 +-- tests/test_supercell.py | 3 +-- tests/test_symmetryutilities.py | 3 +-- tests/test_version.py | 3 +-- 23 files changed, 25 insertions(+), 47 deletions(-) diff --git a/src/diffpy/structure/apps/__init__.py b/src/diffpy/structure/apps/__init__.py index 6f0249a..15ad470 100644 --- a/src/diffpy/structure/apps/__init__.py +++ b/src/diffpy/structure/apps/__init__.py @@ -13,5 +13,4 @@ # ############################################################################## -"""Script applications that use the `diffpy.structure` package. -""" +"""Script applications that use the `diffpy.structure` package.""" diff --git a/src/diffpy/structure/expansion/supercell_mod.py b/src/diffpy/structure/expansion/supercell_mod.py index b5760a3..dee99d9 100644 --- a/src/diffpy/structure/expansion/supercell_mod.py +++ b/src/diffpy/structure/expansion/supercell_mod.py @@ -13,8 +13,7 @@ # ############################################################################## -"""This module contains functions for simple `Structure` manipulation. -""" +"""This module contains functions for simple `Structure` manipulation.""" import numpy diff --git a/src/diffpy/structure/mmlibspacegroups.py b/src/diffpy/structure/mmlibspacegroups.py index faa5ce2..1acd266 100644 --- a/src/diffpy/structure/mmlibspacegroups.py +++ b/src/diffpy/structure/mmlibspacegroups.py @@ -3,8 +3,7 @@ # This code is part of the PyMMLib distribution and governed by # its license.Please see the LICENSE_pymmlib file that should have been # included as part of this package. -"""Space groups defined as a part of the pymmlib. -""" +"""Space groups defined as a part of the pymmlib.""" from diffpy.structure.spacegroupmod import ( Rot_mX_mXY_mZ, diff --git a/src/diffpy/structure/parsers/p_discus.py b/src/diffpy/structure/parsers/p_discus.py index 3ee7e5f..c7185cd 100644 --- a/src/diffpy/structure/parsers/p_discus.py +++ b/src/diffpy/structure/parsers/p_discus.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Parser for DISCUS structure format -""" +"""Parser for DISCUS structure format""" import sys from functools import reduce diff --git a/src/diffpy/structure/parsers/p_pdffit.py b/src/diffpy/structure/parsers/p_pdffit.py index 692c417..7fb7a56 100644 --- a/src/diffpy/structure/parsers/p_pdffit.py +++ b/src/diffpy/structure/parsers/p_pdffit.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Parser for PDFfit structure format -""" +"""Parser for PDFfit structure format""" import sys from functools import reduce diff --git a/src/diffpy/structure/parsers/p_xyz.py b/src/diffpy/structure/parsers/p_xyz.py index cd540a9..9d19e0c 100644 --- a/src/diffpy/structure/parsers/p_xyz.py +++ b/src/diffpy/structure/parsers/p_xyz.py @@ -15,9 +15,9 @@ """Parser for XYZ file format, where - * First line gives number of atoms. - * Second line has optional title. - * Remaining lines contain element, `x, y, z`. +* First line gives number of atoms. +* Second line has optional title. +* Remaining lines contain element, `x, y, z`. """ import sys diff --git a/src/diffpy/structure/parsers/structureparser.py b/src/diffpy/structure/parsers/structureparser.py index 2b74866..7a3ee3a 100644 --- a/src/diffpy/structure/parsers/structureparser.py +++ b/src/diffpy/structure/parsers/structureparser.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Definition of StructureParser, a base class for specific parsers. -""" +"""Definition of StructureParser, a base class for specific parsers.""" class StructureParser(object): diff --git a/src/diffpy/structure/pdffitstructure.py b/src/diffpy/structure/pdffitstructure.py index cc3b66d..414b10b 100644 --- a/src/diffpy/structure/pdffitstructure.py +++ b/src/diffpy/structure/pdffitstructure.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Definition of PDFFitStructure class derived from Structure -""" +"""Definition of PDFFitStructure class derived from Structure""" from diffpy.structure.structure import Structure diff --git a/src/diffpy/structure/spacegroupmod.py b/src/diffpy/structure/spacegroupmod.py index c31b7ca..42fab5c 100644 --- a/src/diffpy/structure/spacegroupmod.py +++ b/src/diffpy/structure/spacegroupmod.py @@ -3,8 +3,7 @@ # This code is part of the PyMMLib distribution and governed by # its license. Please see the LICENSE_pymmlib file that should have been # included as part of this package. -"""Symmetry operations as functions on vectors or arrays. -""" +"""Symmetry operations as functions on vectors or arrays.""" import numpy diff --git a/src/diffpy/structure/structure.py b/src/diffpy/structure/structure.py index f0cb515..aee9ed7 100644 --- a/src/diffpy/structure/structure.py +++ b/src/diffpy/structure/structure.py @@ -13,8 +13,7 @@ # ############################################################################## -"""This module defines class `Structure`. -""" +"""This module defines class `Structure`.""" import codecs import copy as copymod diff --git a/src/diffpy/structure/structureerrors.py b/src/diffpy/structure/structureerrors.py index c930b9b..8967936 100644 --- a/src/diffpy/structure/structureerrors.py +++ b/src/diffpy/structure/structureerrors.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Exceptions used in Structure package. -""" +"""Exceptions used in Structure package.""" class StructureFormatError(Exception): diff --git a/src/diffpy/structure/utils.py b/src/diffpy/structure/utils.py index e5fa3ce..4fcee68 100644 --- a/src/diffpy/structure/utils.py +++ b/src/diffpy/structure/utils.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Small shared functions. -""" +"""Small shared functions.""" from collections.abc import Iterable as _Iterable diff --git a/tests/test_lattice.py b/tests/test_lattice.py index a2b22d3..c562d20 100644 --- a/tests/test_lattice.py +++ b/tests/test_lattice.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for Lattice class. -""" +"""Unit tests for Lattice class.""" import unittest diff --git a/tests/test_loadstructure.py b/tests/test_loadstructure.py index 4f099c7..ad19742 100644 --- a/tests/test_loadstructure.py +++ b/tests/test_loadstructure.py @@ -1,7 +1,6 @@ #!/usr/bin/env python -"""Unit tests for the loadStructure factory. -""" +"""Unit tests for the loadStructure factory.""" import unittest diff --git a/tests/test_p_cif.py b/tests/test_p_cif.py index 62bb25d..d21b259 100644 --- a/tests/test_p_cif.py +++ b/tests/test_p_cif.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for diffpy.structure.parsers.p_cif module -""" +"""Unit tests for diffpy.structure.parsers.p_cif module""" import unittest diff --git a/tests/test_p_discus.py b/tests/test_p_discus.py index 8959718..83f4494 100644 --- a/tests/test_p_discus.py +++ b/tests/test_p_discus.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for diffpy.structure.parsers.p_discus module -""" +"""Unit tests for diffpy.structure.parsers.p_discus module""" import re import unittest diff --git a/tests/test_p_pdffit.py b/tests/test_p_pdffit.py index f993cb4..b33b654 100644 --- a/tests/test_p_pdffit.py +++ b/tests/test_p_pdffit.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for diffpy.structure.parsers.p_pdffit module -""" +"""Unit tests for diffpy.structure.parsers.p_pdffit module""" import re import unittest diff --git a/tests/test_parsers.py b/tests/test_parsers.py index a3f7f3c..55c5244 100644 --- a/tests/test_parsers.py +++ b/tests/test_parsers.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for structure.parsers module. -""" +"""Unit tests for structure.parsers module.""" import os import re diff --git a/tests/test_spacegroups.py b/tests/test_spacegroups.py index c9980e1..996a73d 100644 --- a/tests/test_spacegroups.py +++ b/tests/test_spacegroups.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for diffpy.structure.spacegroups -""" +"""Unit tests for diffpy.structure.spacegroups""" import unittest diff --git a/tests/test_structure.py b/tests/test_structure.py index 9c1a630..d79f5ed 100644 --- a/tests/test_structure.py +++ b/tests/test_structure.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for Structure class. -""" +"""Unit tests for Structure class.""" import copy diff --git a/tests/test_supercell.py b/tests/test_supercell.py index 0e840df..68aa809 100644 --- a/tests/test_supercell.py +++ b/tests/test_supercell.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for supercell.py -""" +"""Unit tests for supercell.py""" import unittest diff --git a/tests/test_symmetryutilities.py b/tests/test_symmetryutilities.py index c4de983..377f755 100644 --- a/tests/test_symmetryutilities.py +++ b/tests/test_symmetryutilities.py @@ -13,8 +13,7 @@ # ############################################################################## -"""Unit tests for SymmetryUtilities.py -""" +"""Unit tests for SymmetryUtilities.py""" import re import sys diff --git a/tests/test_version.py b/tests/test_version.py index e62433e..de45655 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -1,5 +1,4 @@ -"""Unit tests for __version__.py -""" +"""Unit tests for __version__.py""" import diffpy.structure