Loading scripts/update_license_headers.py +27 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,9 @@ def skip_file(file_path : str) -> bool: if file_path.endswith('references_probes_libraries.txt'): return True return False if '/nbi/service/ietf_network/bindings/' in file_path: return True if '/nbi/service/ietf_network_slice/bindings/' in file_path: return True if '/nbi/service/ietf_network_slice/bindings/' in file_path: if file_path.endswith('.py'): return False return True if '/nbi/service/ietf_l3vpn/yang/' in file_path: return True if '/nbi/service/ietf_network/yang/' in file_path: return True if '/tests/tools/mock_qkd_nodes/yang/' in file_path: return True Loading @@ -120,6 +122,30 @@ def process_file( file_path : str, file_no_header : TextIOWrapper, file_skipped : TextIOWrapper, file_updated : TextIOWrapper ) -> None: if skip_file(file_path): # silent skips if file_path.startswith('./.git'): return if file_path.startswith('./libyang'): return if file_path.startswith('./tmp'): return if file_path.startswith('./hackfest/kafka/kafka_2.13-2.8.0/'): return if file_path.startswith('./hackfest/tapi/server/tapi_server/'): return if '/__pycache__/' in file_path: return if '/nbi/service/ietf_network/bindings/' in file_path: return if '/target/classes/' in file_path: return if '/target/generated-classes/' in file_path: return if '/target/generated-sources/' in file_path: return if '/target/test-classes/' in file_path: return if '/git/openconfig/public/' in file_path: return if file_path.endswith('.class'): return if file_path.endswith('.csv'): return if file_path.endswith('.jar'): return if file_path.endswith('.json'): return if file_path.endswith('.pyc'): return if file_path.endswith('.png'): return if file_path.endswith('.zip'): return if file_path.endswith('_pb2.py'): return if file_path.endswith('_grpc.py'): return # verbose skip file_skipped.write(file_path + '\n') return Loading Loading
scripts/update_license_headers.py +27 −1 Original line number Diff line number Diff line Loading @@ -94,7 +94,9 @@ def skip_file(file_path : str) -> bool: if file_path.endswith('references_probes_libraries.txt'): return True return False if '/nbi/service/ietf_network/bindings/' in file_path: return True if '/nbi/service/ietf_network_slice/bindings/' in file_path: return True if '/nbi/service/ietf_network_slice/bindings/' in file_path: if file_path.endswith('.py'): return False return True if '/nbi/service/ietf_l3vpn/yang/' in file_path: return True if '/nbi/service/ietf_network/yang/' in file_path: return True if '/tests/tools/mock_qkd_nodes/yang/' in file_path: return True Loading @@ -120,6 +122,30 @@ def process_file( file_path : str, file_no_header : TextIOWrapper, file_skipped : TextIOWrapper, file_updated : TextIOWrapper ) -> None: if skip_file(file_path): # silent skips if file_path.startswith('./.git'): return if file_path.startswith('./libyang'): return if file_path.startswith('./tmp'): return if file_path.startswith('./hackfest/kafka/kafka_2.13-2.8.0/'): return if file_path.startswith('./hackfest/tapi/server/tapi_server/'): return if '/__pycache__/' in file_path: return if '/nbi/service/ietf_network/bindings/' in file_path: return if '/target/classes/' in file_path: return if '/target/generated-classes/' in file_path: return if '/target/generated-sources/' in file_path: return if '/target/test-classes/' in file_path: return if '/git/openconfig/public/' in file_path: return if file_path.endswith('.class'): return if file_path.endswith('.csv'): return if file_path.endswith('.jar'): return if file_path.endswith('.json'): return if file_path.endswith('.pyc'): return if file_path.endswith('.png'): return if file_path.endswith('.zip'): return if file_path.endswith('_pb2.py'): return if file_path.endswith('_grpc.py'): return # verbose skip file_skipped.write(file_path + '\n') return Loading