From e8bf339f2c878541a097392a9204567f04bf6946 Mon Sep 17 00:00:00 2001 From: Kyle Edwards Date: Fri, 31 Jan 2025 12:32:54 -0500 Subject: [PATCH] Add verify-codeowners hook Issue: https://github.com/rapidsai/pre-commit-hooks/issues/61 --- .github/CODEOWNERS | 15 ++++++++------- .pre-commit-config.yaml | 4 +++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8b540969..148bb414 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,6 +1,7 @@ #cmake code owners -**/CMakeLists.txt @rapidsai/rapids-cmake-codeowners +CMakeLists.txt @rapidsai/rapids-cmake-codeowners *.cmake @rapidsai/rapids-cmake-codeowners +**/cmake/ @rapidsai/rapids-cmake-codeowners /docs/ @rapidsai/rapids-cmake-codeowners /example/ @rapidsai/rapids-cmake-codeowners /rapids-cmake/ @rapidsai/rapids-cmake-codeowners @@ -9,11 +10,11 @@ #CI code owners /.github/ @rapidsai/ci-codeowners /ci/ @rapidsai/ci-codeowners -/.pre-commit-config.yaml @rapidsai/ci-codeowners #packaging code owners -/.devcontainer/ @rapidsai/packaging-codeowners -/conda/ @rapidsai/packaging-codeowners -/dependencies.yaml @rapidsai/packaging-codeowners -/build.sh @rapidsai/packaging-codeowners -pyproject.toml @rapidsai/packaging-codeowners +/.pre-commit-config.yaml @rapidsai/packaging-codeowners +/.devcontainer/ @rapidsai/packaging-codeowners +/conda/ @rapidsai/packaging-codeowners +dependencies.yaml @rapidsai/packaging-codeowners +/build.sh @rapidsai/packaging-codeowners +pyproject.toml @rapidsai/packaging-codeowners diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5cb869a3..773f1b1e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,7 +71,7 @@ repos: ^rapids-cmake/.*$ ) - repo: https://github.com/rapidsai/pre-commit-hooks - rev: v0.4.0 + rev: v0.6.0 hooks: - id: verify-copyright files: | @@ -79,6 +79,8 @@ repos: [.](cmake|cpp|cu|cuh|h|hpp|sh|pxd|py|pyx)$| CMakeLists[.]txt$| meta[.]yaml$ + - id: verify-codeowners + args: [--fix, --project-prefix=rapids, --no-cpp, --no-python] default_language_version: python: python3