Skip to content

Commit b0f71a5

Browse files
authored
Adds more licenses and utilities for license checking (#1425)
* Adds apache 2 headers to files under /examples Adds script to check for them and then add then insert them. * Updates docs files headers * Adds headers to ui/sdk/tests * Adds more missing license headers * Address PR feedback
1 parent 9fd1bda commit b0f71a5

574 files changed

Lines changed: 10021 additions & 323 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/hamilton-lsp.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
working-directory: dev_tools/language_server
2424
steps:
2525
- uses: actions/checkout@v3
26+
- name: Check for missing Apache 2 license headers
27+
run: python3 scripts/check_license_headers.py
28+
working-directory: ${{ github.workspace }}
2629
- name: Set up Python ${{ matrix.python-version }}
2730
uses: actions/setup-python@v4
2831
with:

.github/workflows/hamilton-main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
uv run pre-commit install
6767
uv run pre-commit run --all-files
6868
69+
- name: Check for missing Apache 2 license headers
70+
if: ${{ runner.os == 'Linux' }}
71+
run: |
72+
python3 scripts/check_license_headers.py
73+
6974
- name: Test hamilton main package
7075
run: |
7176
uv sync --group test

.github/workflows/hamilton-sdk.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
working-directory: ui/sdk
2424
steps:
2525
- uses: actions/checkout@v3
26+
- name: Check for missing Apache 2 license headers
27+
run: python3 scripts/check_license_headers.py
28+
working-directory: ${{ github.workspace }}
2629
- name: Set up Python ${{ matrix.python-version }}
2730
uses: actions/setup-python@v4
2831
with:

.github/workflows/hamilton-ui-backend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
--health-retries 10
3737
steps:
3838
- uses: actions/checkout@v3
39+
- name: Check for missing Apache 2 license headers
40+
run: |
41+
python3 scripts/check_license_headers.py
3942
- name: Set up Python
4043
uses: actions/setup-python@v4
4144
with:

.github/workflows/hamilton-ui-frontend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
node-version: [16.x]
2121
steps:
2222
- uses: actions/checkout@v3
23+
- name: Check for missing Apache 2 license headers
24+
run: python3 scripts/check_license_headers.py
25+
working-directory: ${{ github.workspace }}
2326
- name: Use Node.js ${{ matrix.node-version }}
2427
uses: actions/setup-node@v1
2528
with:

docs/conf.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
import os
219
import re
320
import subprocess

docs/data_adapters_extension.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
import dataclasses
219
import importlib
320
import inspect

docs/make_testimonials.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
card_template = """
219
<div class="testimonial-card">
320
<div class="testimonial-content">

examples/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
118
FROM python:3.9.14-slim-buster
219

320
RUN apt update -y &&\

examples/LLM_Workflows/GraphRAG/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
120
# Conversational agent over UFC Knowledge graph
221

322
## Introduction

0 commit comments

Comments
 (0)