diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fab8bc63..f4eb5e60 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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' @@ -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}" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 553271e1..926a00ac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/licenserc-md-header.toml b/licenserc-md-header.toml deleted file mode 100644 index 35ff9136..00000000 --- a/licenserc-md-header.toml +++ /dev/null @@ -1,12 +0,0 @@ -# Custom header style for Markdown files: HTML comment block matching our -# existing header format (no indentation on body lines). -[MARKDOWN_STYLE] -firstLine = "" -beforeEachLine = '' -afterEachLine = '' -allowBlankLines = true -multipleLines = true -padLines = false -firstLineDetectionPattern = '(\s|\t)*(\s|\t)*$' diff --git a/licenserc.toml b/licenserc.toml index 50de08d8..1e42e442 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -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", @@ -26,12 +18,12 @@ includes = [ ] excludes = [ - "!**/*.md", "target/**", ".claude/**", ".tmp-*/**", "third_party/**", ] -[mapping.MARKDOWN_STYLE] +[[rules]] extensions = ["md"] +style_out = "xml"