We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f149a6 commit 3fb783dCopy full SHA for 3fb783d
1 file changed
test/openjd/test_copyright_header.py
@@ -7,7 +7,6 @@
7
_copyright_header_re = re.compile(
8
r"Copyright Amazon\.com, Inc\. or its affiliates\. All Rights Reserved\.", re.IGNORECASE
9
)
10
-_generated_by_scm = re.compile(r"# file generated by setuptools[_-]scm", re.IGNORECASE)
11
12
13
def _check_file(filename: Path) -> None:
@@ -31,17 +30,7 @@ def _check_file(filename: Path) -> None:
31
30
32
33
def _is_version_file(filename: Path) -> bool:
34
- if filename.name != "_version.py":
35
- return False
36
- with open(filename) as infile:
37
- lines_read = 0
38
- for line in infile:
39
- if _generated_by_scm.search(line):
40
- return True
41
- lines_read += 1
42
- if lines_read > 10:
43
- break
44
+ return filename.name == "_version.py"
45
46
47
def test_copyright_headers():
0 commit comments