Skip to content

Commit

Permalink
Add exception to license checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Oct 6, 2023
1 parent 6999bd2 commit 94ff6b6
Showing 1 changed file with 4 additions and 5 deletions.
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 94ff6b6

Please sign in to comment.