Skip to content

Commit

Permalink
fix: Modify regex to generalize files created by setuptools regex. (#613
Browse files Browse the repository at this point in the history
)

Signed-off-by: Karthik Bekal Pattathana <[email protected]>
  • Loading branch information
karthikbekalp authored Feb 21, 2025
1 parent 906bb78 commit 3911d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/test_copyright_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
_copyright_header_re = re.compile(
r"Copyright Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.", re.IGNORECASE
)
_generated_by_scm = re.compile(r"# file generated by setuptools_scm", re.IGNORECASE)
_generated_by_scm = re.compile(r"# file generated by setuptools[_-]scm", re.IGNORECASE)


def _check_file(filename: Path) -> None:
Expand Down

0 comments on commit 3911d7c

Please sign in to comment.