Skip to content

Commit 29b9c44

Browse files
bottlerfacebook-github-bot
authored andcommitted
Allow conda's generated files.
Summary: The conda build process generates some files of its own, which we don't want to catch in our test for copyright notices. Reviewed By: nikhilaravi, patricklabatut Differential Revision: D20868566 fbshipit-source-id: 76a786a3eb9a674d59e630cc06f346e8b82258a4
1 parent b87058c commit 29b9c44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_build.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,17 @@ def test_copyright(self):
5555
+ " All rights reserved.\n"
5656
)
5757

58+
conda_generated_files = [
59+
"run_test.py",
60+
"run_test.sh",
61+
"conda_test_runner.sh",
62+
"conda_test_env_vars.sh",
63+
]
64+
5865
for extension in extensions:
5966
for i in root_dir.glob(f"**/*.{extension}"):
67+
if i.name in conda_generated_files:
68+
continue
6069
with open(i) as f:
6170
firstline = f.readline()
6271
if firstline.startswith(("# -*-", "#!")):

0 commit comments

Comments
 (0)