Skip to content

Commit 175a329

Browse files
add copyright check in github workflow
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
1 parent 63dd0ba commit 175a329

File tree

19 files changed

+55
-1
lines changed

19 files changed

+55
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Copyright Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- '**.md'
9+
- '**.svg'
10+
- '**.png'
11+
- 'docs/**'
12+
- '.github/**'
13+
push:
14+
branches:
15+
- main
16+
paths-ignore:
17+
- 'docs/**'
18+
- '.github/**'
19+
20+
jobs:
21+
22+
build:
23+
runs-on: ubuntu-22.04
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: install sponge
28+
shell: bash
29+
run: sudo apt-get update && sudo apt-get install -y moreutils
30+
- name: generate copyright
31+
shell: bash
32+
run: |
33+
make gen-copyright
34+
- name: check diff
35+
shell: bash
36+
run: |
37+
git diff --exit-code

example/pcap-analyzer/pcap_analyzer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
#!/usr/bin/env python3
1516
# -*- coding: utf-8 -*-
1617
import os

hack/boilerplate.py.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.
13+
# limitations under the License.

hack/update-copyright.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
1718
set -eo pipefail
1819

1920
ROOT_DIR="$(git rev-parse --show-toplevel)"

sdk-python/agentcube/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
from .sandbox import Sandbox
1516
from .code_interpreter import CodeInterpreterClient
1617

sdk-python/agentcube/clients/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
from .client import SandboxClient
1516
from .ssh_client import SandboxSSHClient
1617

sdk-python/agentcube/clients/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
import os
1516
import json
1617
import socket

sdk-python/agentcube/clients/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
API_URL_ENV = "API_URL"
1516
API_TOKEN_ENV = "API_TOKEN"
1617
API_TOKEN_PATH = "/var/run/secrets/kubernetes.io/serviceaccount/token"

sdk-python/agentcube/clients/ssh_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
import os
1516
import shlex
1617
import socket

sdk-python/agentcube/code_interpreter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
from typing import Dict, List
1516
from agentcube.clients import SandboxClient, SandboxSSHClient
1617
from agentcube.sandbox import Sandbox

0 commit comments

Comments
 (0)