diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57e8dc82a1a9f..be2432332fd5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,6 @@ repos: - id: check-added-large-files args: - --maxkb=2000 - # Once this issue is resolved, we can add the full license check: https://github.com/Lucas-C/pre-commit-hooks/issues/68 - repo: https://github.com/aptos-labs/pre-commit-hooks rev: a30f0d816e5062a67d87c8de753cfe499672b959 # Fix the revision to the v1.5.5 release commit. See: https://github.com/Lucas-C/pre-commit-hooks/releases/tag/v1.5.5 hooks: @@ -23,5 +22,7 @@ repos: args: - --license-filepath - devtools/assets/license_header.txt + - --license-filepath + - devtools/assets/shared_license_header.txt - --comment-style - // diff --git a/devtools/assets/license_header.txt b/devtools/assets/license_header.txt index 20407416ffc6b..835bf5179ead4 100644 --- a/devtools/assets/license_header.txt +++ b/devtools/assets/license_header.txt @@ -1 +1,2 @@ Copyright © Aptos Foundation +SPDX-License-Identifier: Apache-2.0 \ No newline at end of file diff --git a/devtools/assets/shared_license_header.txt b/devtools/assets/shared_license_header.txt new file mode 100644 index 0000000000000..2fc71c84f34c8 --- /dev/null +++ b/devtools/assets/shared_license_header.txt @@ -0,0 +1,3 @@ +Copyright © Aptos Foundation +Parts of the project are originally copyright © Meta Platforms, Inc. +SPDX-License-Identifier: Apache-2.0 \ No newline at end of file