Skip to content

Conversation

@devbynature
Copy link
Contributor

@devbynature devbynature commented Jul 27, 2025

Add Apache license headers to source files.
These changes applied in hamilton, ui, contrib, tests, dev_tools and plugin_tests directories on code files.

Changes

  • Apache license headers added to source files.

How I tested this

Notes

Checklist

  • PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

@skrawcz
Copy link
Contributor

skrawcz commented Jul 28, 2025

Thanks @Gophersen -- I scanned these and they look good.

I'll let @pjfanning take a quick scan too.

I'll merge in a couple of days if I don't hear from PJ.

Copy link
Contributor

@skrawcz skrawcz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you shouldn't add a source header here because there already is one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right.
It's fixed, and I ran a script to check for any duplicate cases. I didn't find anything else besides this one.

ui/sdk/setup.py Outdated
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why move this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

# /usr/bin/env python
# -*- coding: utf-8 -*-

"""The setup script."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have the license header before this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed. added between shebang(can not add before this) and coding comment.

@devbynature devbynature requested review from pjfanning and skrawcz July 28, 2025 09:32
Copy link
Member

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - I would still recommend that we do a second pass after this is merged to check for any remaining issues

@skrawcz skrawcz merged commit c838df2 into apache:main Aug 7, 2025
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants