Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ permissions:
contents: read

jobs:
license-headers:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[suggestion]
We could have this check in the pre-commit hook too
(not a blocker for this PR)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

good point, I'll move the check there

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Check license headers
run: |
missing=$(grep -rL "Licensed under the Elastic License 2.0" \
--include="*.py" \
--exclude-dir=".venv" --exclude-dir="dist" --exclude-dir="build" \
. || true)
if [ -n "$missing" ]; then
echo "Files missing Elastic License 2.0 header:"
echo "$missing"
exit 1
fi

pre-commit:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 3 additions & 1 deletion examples/chatbot_rag_app/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@

# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
4 changes: 3 additions & 1 deletion examples/chatbot_rag_app/evaluators/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@

# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
4 changes: 3 additions & 1 deletion examples/chatbot_rag_app/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@

# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
3 changes: 3 additions & 0 deletions examples/claude_code_eval/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
3 changes: 3 additions & 0 deletions examples/claude_code_eval/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
3 changes: 3 additions & 0 deletions examples/claude_code_eval/evaluators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
3 changes: 3 additions & 0 deletions examples/claude_code_eval/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
# or more contributor license agreements. Licensed under the Elastic License 2.0;
# you may not use this file except in compliance with the Elastic License 2.0.
Loading