Skip to content

Commit e5a2e4c

Browse files
authored
Merge pull request #132 from kwagoner94/black-edits
skpkg: apply black line-length 115 to all files in the project directory
2 parents 4065098 + 2351e86 commit e5a2e4c

23 files changed

+25
-47
lines changed

src/diffpy/structure/apps/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
#
1414
##############################################################################
1515

16-
"""Script applications that use the `diffpy.structure` package.
17-
"""
16+
"""Script applications that use the `diffpy.structure` package."""

src/diffpy/structure/expansion/supercell_mod.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""This module contains functions for simple `Structure` manipulation.
17-
"""
16+
"""This module contains functions for simple `Structure` manipulation."""
1817

1918
import numpy
2019

src/diffpy/structure/mmlibspacegroups.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# This code is part of the PyMMLib distribution and governed by
44
# its license.Please see the LICENSE_pymmlib file that should have been
55
# included as part of this package.
6-
"""Space groups defined as a part of the pymmlib.
7-
"""
6+
"""Space groups defined as a part of the pymmlib."""
87

98
from diffpy.structure.spacegroupmod import (
109
Rot_mX_mXY_mZ,

src/diffpy/structure/parsers/p_discus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Parser for DISCUS structure format
17-
"""
16+
"""Parser for DISCUS structure format"""
1817

1918
import sys
2019
from functools import reduce

src/diffpy/structure/parsers/p_pdffit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Parser for PDFfit structure format
17-
"""
16+
"""Parser for PDFfit structure format"""
1817

1918
import sys
2019
from functools import reduce

src/diffpy/structure/parsers/p_xyz.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
"""Parser for XYZ file format, where
1717
18-
* First line gives number of atoms.
19-
* Second line has optional title.
20-
* Remaining lines contain element, `x, y, z`.
18+
* First line gives number of atoms.
19+
* Second line has optional title.
20+
* Remaining lines contain element, `x, y, z`.
2121
"""
2222

2323
import sys

src/diffpy/structure/parsers/structureparser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Definition of StructureParser, a base class for specific parsers.
17-
"""
16+
"""Definition of StructureParser, a base class for specific parsers."""
1817

1918

2019
class StructureParser(object):

src/diffpy/structure/pdffitstructure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Definition of PDFFitStructure class derived from Structure
17-
"""
16+
"""Definition of PDFFitStructure class derived from Structure"""
1817

1918

2019
from diffpy.structure.structure import Structure

src/diffpy/structure/spacegroupmod.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
# This code is part of the PyMMLib distribution and governed by
44
# its license. Please see the LICENSE_pymmlib file that should have been
55
# included as part of this package.
6-
"""Symmetry operations as functions on vectors or arrays.
7-
"""
6+
"""Symmetry operations as functions on vectors or arrays."""
87

98
import numpy
109

src/diffpy/structure/structure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""This module defines class `Structure`.
17-
"""
16+
"""This module defines class `Structure`."""
1817

1918
import codecs
2019
import copy as copymod

src/diffpy/structure/structureerrors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Exceptions used in Structure package.
17-
"""
16+
"""Exceptions used in Structure package."""
1817

1918

2019
class StructureFormatError(Exception):

src/diffpy/structure/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Small shared functions.
17-
"""
16+
"""Small shared functions."""
1817

1918
from collections.abc import Iterable as _Iterable
2019

tests/test_lattice.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for Lattice class.
17-
"""
16+
"""Unit tests for Lattice class."""
1817

1918
import unittest
2019

tests/test_loadstructure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22

3-
"""Unit tests for the loadStructure factory.
4-
"""
3+
"""Unit tests for the loadStructure factory."""
54

65
import unittest
76

tests/test_p_cif.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for diffpy.structure.parsers.p_cif module
17-
"""
16+
"""Unit tests for diffpy.structure.parsers.p_cif module"""
1817

1918
import unittest
2019

tests/test_p_discus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for diffpy.structure.parsers.p_discus module
17-
"""
16+
"""Unit tests for diffpy.structure.parsers.p_discus module"""
1817

1918
import re
2019
import unittest

tests/test_p_pdffit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for diffpy.structure.parsers.p_pdffit module
17-
"""
16+
"""Unit tests for diffpy.structure.parsers.p_pdffit module"""
1817

1918
import re
2019
import unittest

tests/test_parsers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for structure.parsers module.
17-
"""
16+
"""Unit tests for structure.parsers module."""
1817

1918
import os
2019
import re

tests/test_spacegroups.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for diffpy.structure.spacegroups
17-
"""
16+
"""Unit tests for diffpy.structure.spacegroups"""
1817

1918

2019
import unittest

tests/test_structure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for Structure class.
17-
"""
16+
"""Unit tests for Structure class."""
1817

1918

2019
import copy

tests/test_supercell.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for supercell.py
17-
"""
16+
"""Unit tests for supercell.py"""
1817

1918
import unittest
2019

tests/test_symmetryutilities.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
#
1414
##############################################################################
1515

16-
"""Unit tests for SymmetryUtilities.py
17-
"""
16+
"""Unit tests for SymmetryUtilities.py"""
1817

1918
import re
2019
import sys

tests/test_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
"""Unit tests for __version__.py
2-
"""
1+
"""Unit tests for __version__.py"""
32

43
import diffpy.structure
54

0 commit comments

Comments
 (0)