Skip to content

Commit 7a863d3

Browse files
authored
chore: drop Meta licensing (hook + headers) (#342)
## Summary This is no longer a project requiring a meta license. Two-commit cleanup: 1. **Drop the pre-commit hook + header file** so new files don't get re-stamped: - Remove the \`insert-license\` hook from \`.pre-commit-config.yaml\` - Delete \`scripts/license_header.txt\` (the Meta-attribution header it injected) 2. **Strip existing headers** from every \`.py\` / \`.sh\` in the tree (286 files) — removes the 5-line \`Copyright (c) Meta Platforms, Inc. and affiliates\` block. ## Test plan - [x] No \`Meta Platforms\` references remain anywhere in the tree - [x] \`.pre-commit-config.yaml\` parses; remaining hooks (ruff, ruff-format, blacken-docs, etc.) are untouched - [ ] CI: pre-commit job is green and no longer runs \`insert-license\` --------- Signed-off-by: Charlie Doern <cdoern@redhat.com>
1 parent b36f998 commit 7a863d3

288 files changed

Lines changed: 0 additions & 1720 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.

.pre-commit-config.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ repos:
5656
# args: ['--quiet']
5757

5858

59-
- repo: https://github.com/Lucas-C/pre-commit-hooks
60-
rev: v1.5.5
61-
hooks:
62-
- id: insert-license
63-
files: ^src/(ogx_client|llama_stack_client)/lib/.*\.(py|sh)$
64-
args:
65-
- --license-filepath
66-
- scripts/license_header.txt
67-
68-
6959
ci:
7060
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
7161
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate

examples/interactive_agent_cli.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) Meta Platforms, Inc. and affiliates.
3-
# All rights reserved.
4-
#
5-
# This source code is licensed under the terms described in the LICENSE file in
6-
# the root directory of this source tree.
72
"""Interactive CLI for exploring agent turn/step events with server-side tools.
83
94
Usage:

scripts/license_header.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/utils/ruffen-docs.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
# fork of https://github.com/asottile/blacken-docs adapted for ruff
82
from __future__ import annotations
93

scripts/utils/upload-artifact.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
#!/bin/bash
2-
# Copyright (c) Meta Platforms, Inc. and affiliates.
3-
# All rights reserved.
4-
#
5-
# This source code is licensed under the terms described in the LICENSE file in
6-
# the root directory of this source tree.
7-
82
set -exuo pipefail
93

104
FILENAME=$(basename dist/*.whl)

src/ogx_client/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
82

93
import typing as _t

src/ogx_client/_base_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
from __future__ import annotations
82

93
import sys

src/ogx_client/_compat.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
from __future__ import annotations
82

93
from typing import TYPE_CHECKING, Any, Union, Generic, TypeVar, Callable, cast, overload

src/ogx_client/_constants.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
82

93
import httpx

src/ogx_client/_exceptions.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# Copyright (c) Meta Platforms, Inc. and affiliates.
2-
# All rights reserved.
3-
#
4-
# This source code is licensed under the terms described in the LICENSE file in
5-
# the root directory of this source tree.
6-
71
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
82

93
from __future__ import annotations

0 commit comments

Comments
 (0)