Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ jobs:
# check — pinning the hash here makes that fail instead. To upgrade, bump
# the version and replace the hash with the new release's published
# .sha256 (confirm the bytes first).
HAWKEYE_VERSION: v6.5.1
HAWKEYE_SHA256: d6eb0505a45a15244f4f789158aafe5e3f1a7dc86c9dc1d7651f3cb1e1b321e0
HAWKEYE_VERSION: v7.0.0
HAWKEYE_SHA256: 2617b43ec6f871511f7b381e3d34544d6aa47c2468541ca67102d69ff7d0f541
HAWKEYE_INSTALL_DIR: ${{ github.workspace }}/.hawkeye-bin
# A manual E2E dispatch only exercises the E2E jobs; skip the rest.
if: github.event_name != 'workflow_dispatch'
Expand All @@ -607,7 +607,7 @@ jobs:
run: |
tarball="hawkeye-x86_64-unknown-linux-gnu.tar.xz"
curl --proto '=https' --tlsv1.2 -LsSf \
"https://github.com/korandoru/hawkeye/releases/download/${HAWKEYE_VERSION}/${tarball}" \
"https://github.com/fast/hawkeye/releases/download/${HAWKEYE_VERSION}/${tarball}" \
-o "${tarball}"
echo "${HAWKEYE_SHA256} ${tarball}" | sha256sum -c -
mkdir -p "${HAWKEYE_INSTALL_DIR}"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ repos:
stages: [pre-push]
groups: [local-tools] # local-only; CI uses the `commit-signatures` job

# License headers: mirrors the korandoru/hawkeye CI check.
# License headers: mirrors the fast/hawkeye CI check.
# Requires: cargo install hawkeye
- repo: local
hooks:
Expand Down
12 changes: 0 additions & 12 deletions licenserc-md-header.toml

This file was deleted.

20 changes: 6 additions & 14 deletions licenserc.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
## hawkeye license-header enforcement configuration.
## Run locally: hawkeye check
## Docs: https://github.com/korandoru/hawkeye
##
## Note: `!**/*.md` is a force-include that overrides hawkeye's built-in
## default exclusion of *.md. It also overrides the positive excludes below
## for .md files — there is no way to subsequently re-exclude a subset of
## .md paths once the negation is in effect. In practice this is harmless
## because hawkeye's git integration skips untracked directories, but any
## tracked *.md file (e.g. in third_party/) would be required to carry a
## copyright header.
## Docs: https://github.com/fast/hawkeye

inlineHeader = """
[header]
text = """
Copyright © Advanced Micro Devices, Inc., or its affiliates.

SPDX-License-Identifier: MIT
"""

additionalHeaders = ["licenserc-md-header.toml"]

[files]
includes = [
"**/*.rs",
"**/*.py",
Expand All @@ -26,12 +18,12 @@ includes = [
]

excludes = [
"!**/*.md",
"target/**",
".claude/**",
".tmp-*/**",
"third_party/**",
]

[mapping.MARKDOWN_STYLE]
[[rules]]
extensions = ["md"]
style_out = "xml"