Skip to content

Commit

Permalink
[License Check] Update license check for exact matches.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind committed Mar 26, 2024
1 parent 83a4430 commit ccce21d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -23,5 +22,7 @@ repos:
args:
- --license-filepath
- devtools/assets/license_header.txt
- --license-filepath
- devtools/assets/shared_license_header.txt
- --comment-style
- //
1 change: 1 addition & 0 deletions devtools/assets/license_header.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Copyright © Aptos Foundation
SPDX-License-Identifier: Apache-2.0
3 changes: 3 additions & 0 deletions devtools/assets/shared_license_header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright © Aptos Foundation
Parts of the project are originally copyright © Meta Platforms, Inc.
SPDX-License-Identifier: Apache-2.0

0 comments on commit ccce21d

Please sign in to comment.