From eb9a4dae7905b6155455868facf8c0aea554fad3 Mon Sep 17 00:00:00 2001 From: Pepijn Date: Thu, 30 Jul 2026 11:16:29 +0200 Subject: [PATCH] style(g05): standardize new file headers --- src/lerobot/policies/g05/__init__.py | 16 ++++++++++++++++ src/lerobot/policies/g05/action_codec_g05.py | 4 +++- src/lerobot/policies/g05/configuration_g05.py | 4 +++- src/lerobot/policies/g05/inference/__init__.py | 4 +++- .../policies/g05/inference/g05_adapter.py | 4 +++- src/lerobot/policies/g05/modeling_g05.py | 10 +++++++++- src/lerobot/policies/g05/native_g05.py | 4 +++- src/lerobot/policies/g05/processing_g05.py | 4 +++- src/lerobot/policies/g05/processor_g05.py | 10 +++++++++- tests/policies/g05/test_action_codec_g05.py | 5 ++++- tests/policies/g05/test_g05.py | 16 +++++++++++++++- tests/runtime/test_g05_adapter.py | 4 +++- 12 files changed, 74 insertions(+), 11 deletions(-) diff --git a/src/lerobot/policies/g05/__init__.py b/src/lerobot/policies/g05/__init__.py index 5d8c61e29..db649d850 100644 --- a/src/lerobot/policies/g05/__init__.py +++ b/src/lerobot/policies/g05/__init__.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """OpenGalaxea G0.5 policy integration.""" from .configuration_g05 import G05Config diff --git a/src/lerobot/policies/g05/action_codec_g05.py b/src/lerobot/policies/g05/action_codec_g05.py index dcc702f63..d0c2331c5 100644 --- a/src/lerobot/policies/g05/action_codec_g05.py +++ b/src/lerobot/policies/g05/action_codec_g05.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/configuration_g05.py b/src/lerobot/policies/g05/configuration_g05.py index ea05fc5bd..0cf9d980d 100644 --- a/src/lerobot/policies/g05/configuration_g05.py +++ b/src/lerobot/policies/g05/configuration_g05.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/inference/__init__.py b/src/lerobot/policies/g05/inference/__init__.py index 795ca69ca..579c270f9 100644 --- a/src/lerobot/policies/g05/inference/__init__.py +++ b/src/lerobot/policies/g05/inference/__init__.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/inference/g05_adapter.py b/src/lerobot/policies/g05/inference/g05_adapter.py index 8a65174ea..06ad27cea 100644 --- a/src/lerobot/policies/g05/inference/g05_adapter.py +++ b/src/lerobot/policies/g05/inference/g05_adapter.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/modeling_g05.py b/src/lerobot/policies/g05/modeling_g05.py index e471a1c40..f807f7a5e 100644 --- a/src/lerobot/policies/g05/modeling_g05.py +++ b/src/lerobot/policies/g05/modeling_g05.py @@ -1,10 +1,18 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """First-class LeRobot wrapper around the community-licensed G0.5 implementation.""" diff --git a/src/lerobot/policies/g05/native_g05.py b/src/lerobot/policies/g05/native_g05.py index cbdc3e104..7a956ff5e 100644 --- a/src/lerobot/policies/g05/native_g05.py +++ b/src/lerobot/policies/g05/native_g05.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/processing_g05.py b/src/lerobot/policies/g05/processing_g05.py index 493f45bc1..cecaefc2b 100644 --- a/src/lerobot/policies/g05/processing_g05.py +++ b/src/lerobot/policies/g05/processing_g05.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/src/lerobot/policies/g05/processor_g05.py b/src/lerobot/policies/g05/processor_g05.py index 6fa040115..ad7f6209e 100644 --- a/src/lerobot/policies/g05/processor_g05.py +++ b/src/lerobot/policies/g05/processor_g05.py @@ -1,10 +1,18 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. """Serializable preprocessing and inverse projection for G0.5.""" diff --git a/tests/policies/g05/test_action_codec_g05.py b/tests/policies/g05/test_action_codec_g05.py index fdde01548..7cfd523a9 100644 --- a/tests/policies/g05/test_action_codec_g05.py +++ b/tests/policies/g05/test_action_codec_g05.py @@ -1,10 +1,13 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. diff --git a/tests/policies/g05/test_g05.py b/tests/policies/g05/test_g05.py index d1f0192ce..fc323f369 100644 --- a/tests/policies/g05/test_g05.py +++ b/tests/policies/g05/test_g05.py @@ -1,4 +1,18 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. from __future__ import annotations diff --git a/tests/runtime/test_g05_adapter.py b/tests/runtime/test_g05_adapter.py index f30135729..cac394b91 100644 --- a/tests/runtime/test_g05_adapter.py +++ b/tests/runtime/test_g05_adapter.py @@ -1,4 +1,6 @@ -# Copyright 2026 The HuggingFace Inc. team. All rights reserved. +#!/usr/bin/env python + +# Copyright 2026 HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.