Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
20 changes: 20 additions & 0 deletions .github/workflows/check-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: License Header Check

on:
pull_request:
branches:
- develop
push:
branches:
- develop

jobs:
check-license-header:
name: Check License Header
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: apache/skywalking-eyes/header@main
with:
mode: check
22 changes: 22 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
header:
license:
spdx-id: Apache-2.0
copyright-owner: Amazon.com, Inc. or its affiliates.
content: |
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0

paths:
- '**/*.py'

paths-ignore:
- '**/*.md'
- '**/*.java'
- 'LICENSE'
- 'NOTICE'
- '**/smithy_core/rfc3986.py'

language:
Python:
extensions:
- ".py"
2 changes: 2 additions & 0 deletions packages/aws-sdk-signers/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions packages/aws-sdk-signers/tests/unit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions packages/aws-sdk-signers/tests/unit/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions packages/aws-sdk-signers/tests/unit/auth/test_sigv4.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import pathlib
import re
Expand Down
2 changes: 2 additions & 0 deletions packages/aws-sdk-signers/tests/unit/test_identity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from datetime import UTC, datetime, timedelta

import pytest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Final

from smithy_core.codecs import Codec
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
2 changes: 2 additions & 0 deletions packages/smithy-aws-core/tests/unit/aio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
"""Binary Event Stream support for the application/vnd.amazon.eventstream format."""

from typing import Any
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/src/smithy_core/codecs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from io import BytesIO
from typing import TYPE_CHECKING, Protocol, runtime_checkable

Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/src/smithy_core/deserializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
from collections.abc import Callable
from decimal import Decimal
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/src/smithy_core/documents.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
from collections.abc import Callable, Iterator, Mapping, Sequence
from contextlib import contextmanager
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/src/smithy_core/serializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import datetime
from abc import ABCMeta, abstractmethod
from collections.abc import Callable, Iterator
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/src/smithy_core/shapes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from enum import Enum
from typing import Self

Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/tests/unit/test_documents.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# pyright: reportPrivateUsage=false
from dataclasses import dataclass, replace
from datetime import datetime
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/tests/unit/test_schemas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from dataclasses import replace
from typing import Any

Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/tests/unit/test_shapes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import pytest
from smithy_core.exceptions import ExpectationNotMetError, SmithyError
from smithy_core.shapes import ShapeID
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-core/tests/unit/test_type_registry.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import pytest
from smithy_core.deserializers import DeserializeableShape, ShapeDeserializer
from smithy_core.documents import Document, TypeRegistry
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-http/src/smithy_http/aio/protocols.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
from collections.abc import AsyncIterable
from inspect import iscoroutinefunction
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-http/src/smithy_http/serializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from asyncio import iscoroutinefunction
from collections.abc import Callable, Iterator
from contextlib import contextmanager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import platform

import smithy_core
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-http/tests/unit/test_user_agent.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import pytest
from smithy_http.user_agent import (
RawStringUserAgentComponent,
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-json/tests/unit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from dataclasses import dataclass
from datetime import UTC, datetime
from decimal import Decimal
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-json/tests/unit/test_deserializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from datetime import datetime
from decimal import Decimal
from typing import Any
Expand Down
2 changes: 2 additions & 0 deletions packages/smithy-json/tests/unit/test_serializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
from datetime import datetime
from decimal import Decimal
from io import BytesIO
Expand Down
Loading