Skip to content

Commit ec7f5f4

Browse files
committed
Make source header 100 character wide
1 parent 2110e63 commit ec7f5f4

10 files changed

Lines changed: 48 additions & 45 deletions

File tree

src/hsd/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#------------------------------------------------------------------------------#
2-
# hsd-python: package for manipulating HSD-formatted data in Python #
3-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4-
# Licensed under the BSD 2-clause license. #
5-
#------------------------------------------------------------------------------#
1+
#--------------------------------------------------------------------------------------------------#
2+
# hsd-python: package for manipulating HSD-formatted data in Python #
3+
# Copyright (C) 2011 - 2021 DFTB+ developers group
4+
# # BSD 2-clause license.
5+
#
6+
#--------------------------------------------------------------------------------------------------#
67
#
78
"""
89
Toolbox for reading, writing and manipulating HSD-data.

src/hsd/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#------------------------------------------------------------------------------#
2-
# hsd-python: package for manipulating HSD-formatted data in Python #
3-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4-
# Licensed under the BSD 2-clause license. #
5-
#------------------------------------------------------------------------------#
1+
#--------------------------------------------------------------------------------------------------#
2+
# hsd-python: package for manipulating HSD-formatted data in Python #
3+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4+
# Licensed under the BSD 2-clause license. #
5+
#--------------------------------------------------------------------------------------------------#
66
#
77
"""
88
Implements common functionalities for the HSD package

src/hsd/dict.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#------------------------------------------------------------------------------#
2-
# hsd-python: package for manipulating HSD-formatted data in Python #
3-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4-
# Licensed under the BSD 2-clause license. #
5-
#------------------------------------------------------------------------------#
1+
#--------------------------------------------------------------------------------------------------#
2+
# hsd-python: package for manipulating HSD-formatted data in Python #
3+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4+
# Licensed under the BSD 2-clause license. #
5+
#--------------------------------------------------------------------------------------------------#
66
#
77
"""
88
Contains an event-driven builder for dictionary based (JSON-like) structure

src/hsd/eventhandler.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#------------------------------------------------------------------------------#
2-
# hsd-python: package for manipulating HSD-formatted data in Python #
3-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4-
# Licensed under the BSD 2-clause license. #
5-
#------------------------------------------------------------------------------#
1+
#--------------------------------------------------------------------------------------------------#
2+
# hsd-python: package for manipulating HSD-formatted data in Python #
3+
# Copyright (C) 2011 - 2021 DFTB+ developers group
4+
# # BSD 2-clause license.
5+
#
6+
#--------------------------------------------------------------------------------------------------#
67
#
78
"""
89
Contains an event handler base class.

src/hsd/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# hsd-python: package for manipulating HSD-formatted data in Python #
2-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
2+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
33
# Licensed under the BSD 2-clause license. #
44
#------------------------------------------------------------------------------#
55
#

src/hsd/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# hsd-python: package for manipulating HSD-formatted data in Python #
2-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
2+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
33
# Licensed under the BSD 2-clause license. #
44
#------------------------------------------------------------------------------#
55
#

src/hsd/parser.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#------------------------------------------------------------------------------#
2-
# hsd-python: package for manipulating HSD-formatted data in Python #
3-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4-
# Licensed under the BSD 2-clause license. #
5-
#------------------------------------------------------------------------------#
1+
#--------------------------------------------------------------------------------------------------#
2+
# hsd-python: package for manipulating HSD-formatted data in Python #
3+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
4+
# Licensed under the BSD 2-clause license. #
5+
#--------------------------------------------------------------------------------------------------#
66
#
77
"""
88
Contains the event-generating HSD-parser.
@@ -145,9 +145,7 @@ def _parse(self, line):
145145
# Equal sign
146146
elif sign == "=":
147147
# Ignore if followed by "{" (DFTB+ compatibility)
148-
if after.lstrip().startswith("{"):
149-
# _oldbefore may already contain the tagname, if the
150-
# tagname was followed by an attribute -> append
148+
if after.lstrip().startswith("{"): # _oldbefore may already contain the tagname, if the # tagname was followed by an attribute -> append
151149
self._oldbefore += before
152150
else:
153151
self._hsdattrib[common.HSD_ATTRIB_EQUAL] = True

test/test_dict.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
#!/bin/env python3
2-
#------------------------------------------------------------------------------#
3-
# hsd-python: package for manipulating HSD-formatted data in Python #
4-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
5-
# Licensed under the BSD 2-clause license. #
6-
#------------------------------------------------------------------------------#
2+
#--------------------------------------------------------------------------------------------------#
3+
# hsd-python: package for manipulating HSD-formatted data in Python #
4+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
5+
# Licensed under the BSD 2-clause license. #
6+
#--------------------------------------------------------------------------------------------------#
77
#
88
"""Tests for the dictbuilder class"""
99

1010
import io
1111
import pytest
1212
import hsd
1313

14+
# Some abbreviations
1415
_HSD_LINE = hsd.HSD_ATTRIB_LINE
1516
_HSD_EQUAL = hsd.HSD_ATTRIB_EQUAL
1617
_HSD_NAME = hsd.HSD_ATTRIB_NAME
1718

19+
1820
# General test list format for valid tests
1921
# [("Test name", ([List of HSD events], expected dictionary outcome))]
2022

test/test_dump.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/env python3
2-
#------------------------------------------------------------------------------#
3-
# hsd-python: package for manipulating HSD-formatted data in Python #
4-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
5-
# Licensed under the BSD 2-clause license. #
6-
#------------------------------------------------------------------------------#
2+
#--------------------------------------------------------------------------------------------------#
3+
# hsd-python: package for manipulating HSD-formatted data in Python #
4+
# Copyright (C) 2011 - 2021 DFTB+ developers group
5+
# # BSD 2-clause license.
6+
#
7+
#--------------------------------------------------------------------------------------------------#
78
#
89
import numpy as np
910
import hsd

test/test_parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/env python3
2-
#------------------------------------------------------------------------------#
3-
# hsd-python: package for manipulating HSD-formatted data in Python #
4-
# Copyright (C) 2011 - 2021 DFTB+ developers group #
5-
# Licensed under the BSD 2-clause license. #
6-
#------------------------------------------------------------------------------#
2+
#--------------------------------------------------------------------------------------------------#
3+
# hsd-python: package for manipulating HSD-formatted data in Python #
4+
# Copyright (C) 2011 - 2021 DFTB+ developers group #
5+
# Licensed under the BSD 2-clause license. #
6+
#--------------------------------------------------------------------------------------------------#
77
#
88
import io
99
import pytest

0 commit comments

Comments
 (0)