Skip to content

Commit

Permalink
Update template files
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Oct 9, 2023
1 parent b4c1d5b commit 7c9e528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions .static_files
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ scripts/README.md

example_data/README.md

.coveragerc
.editorconfig
.gitattributes
.gitignore
Expand Down
9 changes: 4 additions & 5 deletions scripts/license_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# pylint: skip-file

"""This script checks that the license and license headers
exists and that they are up to date.
exist and that they are up to date.
"""

import argparse
Expand Down Expand Up @@ -48,6 +46,7 @@
"sdist",
"wheels",
"pip-wheel-metadata",
".coveragerc",
".git",
".github",
".flake8",
Expand Down Expand Up @@ -237,7 +236,7 @@ def normalized_text(text: str, chars_to_trim: list[str] = COMMENT_CHARS) -> str:


def format_copyright_template(copyright_template: str, author: str) -> str:
"""Formats license header by inserting the specified author for every occurence of
"""Formats license header by inserting the specified author for every occurrence of
"{author}" in the header template.
"""
return normalized_text(copyright_template.replace("{author}", author))
Expand Down Expand Up @@ -330,7 +329,7 @@ def check_copyright_notice(
author (str, optional):
The author that shall be included in the license header.
It will replace any appearance of "{author}" in the license
header. This defaults to an auther info for GHGA.
header. This defaults to an author info for GHGA.
"""
# If the global_copyright is already set, check if the current copyright is
Expand Down

0 comments on commit 7c9e528

Please sign in to comment.