Skip to content

skpkg: apply black line-length 115 to all files in the project directory #132

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

Merged
merged 1 commit into from
Jun 7, 2025
Merged
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
3 changes: 1 addition & 2 deletions src/diffpy/structure/apps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
#
##############################################################################

"""Script applications that use the `diffpy.structure` package.
"""
"""Script applications that use the `diffpy.structure` package."""
3 changes: 1 addition & 2 deletions src/diffpy/structure/expansion/supercell_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""This module contains functions for simple `Structure` manipulation.
"""
"""This module contains functions for simple `Structure` manipulation."""

import numpy

Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/mmlibspacegroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/parsers/p_discus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Parser for DISCUS structure format
"""
"""Parser for DISCUS structure format"""

import sys
from functools import reduce
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/parsers/p_pdffit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Parser for PDFfit structure format
"""
"""Parser for PDFfit structure format"""

import sys
from functools import reduce
Expand Down
6 changes: 3 additions & 3 deletions src/diffpy/structure/parsers/p_xyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/parsers/structureparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/pdffitstructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Definition of PDFFitStructure class derived from Structure
"""
"""Definition of PDFFitStructure class derived from Structure"""


from diffpy.structure.structure import Structure
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/spacegroupmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""This module defines class `Structure`.
"""
"""This module defines class `Structure`."""

import codecs
import copy as copymod
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/structureerrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Exceptions used in Structure package.
"""
"""Exceptions used in Structure package."""


class StructureFormatError(Exception):
Expand Down
3 changes: 1 addition & 2 deletions src/diffpy/structure/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Small shared functions.
"""
"""Small shared functions."""

from collections.abc import Iterable as _Iterable

Expand Down
3 changes: 1 addition & 2 deletions tests/test_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for Lattice class.
"""
"""Unit tests for Lattice class."""

import unittest

Expand Down
3 changes: 1 addition & 2 deletions tests/test_loadstructure.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python

"""Unit tests for the loadStructure factory.
"""
"""Unit tests for the loadStructure factory."""

import unittest

Expand Down
3 changes: 1 addition & 2 deletions tests/test_p_cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for diffpy.structure.parsers.p_cif module
"""
"""Unit tests for diffpy.structure.parsers.p_cif module"""

import unittest

Expand Down
3 changes: 1 addition & 2 deletions tests/test_p_discus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/test_p_pdffit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for structure.parsers module.
"""
"""Unit tests for structure.parsers module."""

import os
import re
Expand Down
3 changes: 1 addition & 2 deletions tests/test_spacegroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for diffpy.structure.spacegroups
"""
"""Unit tests for diffpy.structure.spacegroups"""


import unittest
Expand Down
3 changes: 1 addition & 2 deletions tests/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for Structure class.
"""
"""Unit tests for Structure class."""


import copy
Expand Down
3 changes: 1 addition & 2 deletions tests/test_supercell.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for supercell.py
"""
"""Unit tests for supercell.py"""

import unittest

Expand Down
3 changes: 1 addition & 2 deletions tests/test_symmetryutilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
#
##############################################################################

"""Unit tests for SymmetryUtilities.py
"""
"""Unit tests for SymmetryUtilities.py"""

import re
import sys
Expand Down
3 changes: 1 addition & 2 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Unit tests for __version__.py
"""
"""Unit tests for __version__.py"""

import diffpy.structure

Expand Down