mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
1 parent
4abfc0f002
commit
9efcfad4f3
5 files changed
+73
-7
No files matched your search
@@ -4,7 +4,7 @@ import sys
|
||||
|
||||
import yaml
|
||||
|
||||
LOCAL_TESTS = ["Run Black", "Python Pylint", "Test with pytest"]
|
||||
LOCAL_TESTS = ["Run license checks", "Run Black", "Python Pylint", "Test with pytest"]
|
||||
|
||||
|
||||
def run_command(command):
|
||||
@@ -25,6 +25,7 @@ if __name__ == "__main__":
|
||||
for step in steps:
|
||||
if "name" in step and step["name"] in LOCAL_TESTS:
|
||||
compressed = step["run"].replace("\n", ";").replace("\\", "")
|
||||
compressed = compressed.replace("--check", "")
|
||||
curr_command = f"{compressed}"
|
||||
|
||||
print("*" * 100)
|
||||
@@ -38,10 +39,6 @@ if __name__ == "__main__":
|
||||
print_green("Building Documentation")
|
||||
run_command("cd docs/; make html; cd ../")
|
||||
|
||||
# Add licensing to all pyrad files
|
||||
print_green("Add licensing headers")
|
||||
run_command("./scripts/licensing/license_headers.sh")
|
||||
|
||||
print("\n")
|
||||
print_green("=" * 100)
|
||||
print_green("ALL CHECKS PASSED")
|
||||
|
||||
Reference in new issue
Block a user