From 80e22606f7450f95e89029cc995dc8c15ec87b49 Mon Sep 17 00:00:00 2001 From: Ralph Liu Date: Tue, 29 Oct 2024 19:09:28 -0700 Subject: [PATCH] Add pre-commit suggestions --- .pre-commit-config.yaml | 8 +------- dependencies.yaml | 6 +++--- pyproject.toml | 6 +++--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55c9ecb28..225b171f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -72,13 +72,7 @@ repos: types_or: [python, rst, markdown] additional_dependencies: [tomli] files: ^(nx_cugraph|docs)/ - args: ["-L thirdparty"] - - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v16.0.6 - hooks: - - id: clang-format - types_or: [c, c++, cuda] - args: ["-fallback-style=none", "-style=file", "-i"] + args: ["-L thirdparty,coo,COO,numer"] - repo: https://github.com/rapidsai/pre-commit-hooks rev: v0.4.0 hooks: diff --git a/dependencies.yaml b/dependencies.yaml index c2d505253..6b054d87f 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -36,7 +36,7 @@ files: - test_notebook py_build_nx_cugraph: output: pyproject - pyproject_dir: python/nx-cugraph + pyproject_dir: . extras: table: build-system includes: @@ -44,7 +44,7 @@ files: - python_build_wheel py_run_nx_cugraph: output: pyproject - pyproject_dir: python/nx-cugraph + pyproject_dir: . extras: table: project includes: @@ -53,7 +53,7 @@ files: - python_run_nx_cugraph py_test_nx_cugraph: output: pyproject - pyproject_dir: python/nx-cugraph + pyproject_dir: . extras: table: project.optional-dependencies key: test diff --git a/pyproject.toml b/pyproject.toml index 5f7f18076..d5742dc4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ requires = [ "rapids-build-backend>=0.3.1,<0.4.0.dev0", "setuptools>=61.0.0", "wheel", -] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. +] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`. build-backend = "rapids_build_backend.build" [project] @@ -36,7 +36,7 @@ dependencies = [ "networkx>=3.0", "numpy>=1.23,<3.0a0", "pylibcugraph==24.12.*,>=0.0.0a0", -] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. +] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`. [project.optional-dependencies] test = [ @@ -48,7 +48,7 @@ test = [ "pytest-mpl", "pytest-xdist", "scipy", -] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. +] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`. [project.urls] Homepage = "https://github.com/rapidsai/nx-cugraph"