Loading scripts/update_license_headers.py +15 −5 Original line number Diff line number Diff line Loading @@ -47,6 +47,11 @@ def skip_file(file_path : str) -> bool: if file_path.endswith('_pb2_grpc.py'): return True if file_path.endswith('_pb2.py'): return True if file_path.endswith('.class'): return True if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/Examples.md'): return False if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/TAPIExample.md'): return False if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/TopologyFileDescription.md'): return False if file_path.endswith('.md'): return True if file_path.endswith('.png'): return True if file_path.endswith('.json'): return True Loading @@ -66,7 +71,11 @@ def skip_file(file_path : str) -> bool: if file_path.startswith('./tmp/'): return True if '/manifests/cttc-ols/' in file_path: return True if '/hackfest/netconf-oc/openconfig/' in file_path: return True if file_path.endswith('/hackfest/tapi/server/tapi_server/database.py'): return False if file_path.endswith('/hackfest/tapi/server/tapi_server/__main__.py'): return False if '/hackfest/tapi/server/tapi_server/' in file_path: return True if '/hackfest/kafka/kafka_2.13-2.8.0/' in file_path: return True if '/hackfest5/clab-hackfest5/' in file_path: return True if '/.git/' in file_path: return True Loading Loading @@ -102,18 +111,19 @@ def skip_file(file_path : str) -> bool: if '/tests/tools/mock_qkd_nodes/yang/' in file_path: return True if '/ztp/target/' in file_path: return True if '/policy/target/' in file_path: return True if file_path.endswith('dlt/gateway/_legacy/settings.gradle.kts'): return False if file_path.endswith('dlt/gateway/_legacy/Dockerfile'): return False if '/dlt/gateway/_legacy' in file_path: return True if file_path.endswith('proto/src/python/asyncio/__init__.py'): return False if '/proto/src/python/asyncio/' in file_path: return True if FILE_PATH_SKIPPED in file_path: return True if FILE_PATH_NO_HEADER in file_path: return True if FILE_PATH_UPDATED in file_path: return True if file_path in {'./LICENSE', './.python-version', './.env'}: return True if '/across_demos/' in file_path: return True if 'AGENTS.md' in file_path: return True if '.codex' in file_path: return True if 'codex-session.txt' in file_path: return True return False def process_line(line_in : str) -> str: Loading Loading
scripts/update_license_headers.py +15 −5 Original line number Diff line number Diff line Loading @@ -47,6 +47,11 @@ def skip_file(file_path : str) -> bool: if file_path.endswith('_pb2_grpc.py'): return True if file_path.endswith('_pb2.py'): return True if file_path.endswith('.class'): return True if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/Examples.md'): return False if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/TAPIExample.md'): return False if file_path.endswith('/bgpls_speaker/service/java/netphony-topology/doc/TopologyFileDescription.md'): return False if file_path.endswith('.md'): return True if file_path.endswith('.png'): return True if file_path.endswith('.json'): return True Loading @@ -66,7 +71,11 @@ def skip_file(file_path : str) -> bool: if file_path.startswith('./tmp/'): return True if '/manifests/cttc-ols/' in file_path: return True if '/hackfest/netconf-oc/openconfig/' in file_path: return True if file_path.endswith('/hackfest/tapi/server/tapi_server/database.py'): return False if file_path.endswith('/hackfest/tapi/server/tapi_server/__main__.py'): return False if '/hackfest/tapi/server/tapi_server/' in file_path: return True if '/hackfest/kafka/kafka_2.13-2.8.0/' in file_path: return True if '/hackfest5/clab-hackfest5/' in file_path: return True if '/.git/' in file_path: return True Loading Loading @@ -102,18 +111,19 @@ def skip_file(file_path : str) -> bool: if '/tests/tools/mock_qkd_nodes/yang/' in file_path: return True if '/ztp/target/' in file_path: return True if '/policy/target/' in file_path: return True if file_path.endswith('dlt/gateway/_legacy/settings.gradle.kts'): return False if file_path.endswith('dlt/gateway/_legacy/Dockerfile'): return False if '/dlt/gateway/_legacy' in file_path: return True if file_path.endswith('proto/src/python/asyncio/__init__.py'): return False if '/proto/src/python/asyncio/' in file_path: return True if FILE_PATH_SKIPPED in file_path: return True if FILE_PATH_NO_HEADER in file_path: return True if FILE_PATH_UPDATED in file_path: return True if file_path in {'./LICENSE', './.python-version', './.env'}: return True if '/across_demos/' in file_path: return True if 'AGENTS.md' in file_path: return True if '.codex' in file_path: return True if 'codex-session.txt' in file_path: return True return False def process_line(line_in : str) -> str: Loading