Skip to content

Commit 1c0d6e8

Browse files
committed
Merge branch 'main' into copilot/fix-760
2 parents 100f18a + 811cb93 commit 1c0d6e8

53 files changed

Lines changed: 703 additions & 625 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,3 @@ body:
113113
+-------------------------------+----------------------+----------------------+
114114
validations:
115115
required: false
116-

.github/ISSUE_TEMPLATE/doc_request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ body:
4141
label: If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
4242
placeholder: |
4343
https://nvidia.github.io/cuda-python/latest/
44-

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ closes <!-- Link issue here -->
1111
<!-- TODO: - [ ] I am familiar with the [Contributing Guidelines](). -->
1212
- [ ] New or existing tests cover these changes.
1313
- [ ] The documentation is up to date with these changes.
14-

.github/actions/doc_preview/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
using: composite
1919
steps:
2020
# The steps below are executed only when testing in a PR.
21-
# Note: the PR previews will be removed once merged to main (see below)
21+
# Note: the PR previews will be removed once merged to main (see below)
2222
- name: Deploy doc preview
2323
if: ${{ github.ref_name != 'main' }}
2424
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
@@ -28,7 +28,7 @@ runs:
2828
folder: ${{ inputs.source-folder }}
2929
target-folder: docs/pr-preview/pr-${{ inputs.pr-number }}/
3030
commit-message: "Deploy doc preview for PR ${{ inputs.pr-number }} (${{ github.sha }})"
31-
31+
3232
- name: Leave a comment after deployment
3333
if: ${{ github.ref_name != 'main' }}
3434
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
@@ -44,8 +44,8 @@ runs:
4444
| <br> https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/cuda-bindings/ <br>
4545
| <br> https://nvidia.github.io/cuda-python/pr-preview/pr-${{ inputs.pr-number }}/cuda-pathfinder/ <br><br>
4646
| <h6><br> Preview will be ready when the GitHub Pages deployment is complete. <br><br></h6>
47-
48-
# The steps below are executed only when building on main.
47+
48+
# The steps below are executed only when building on main.
4949
- name: Remove doc preview
5050
if: ${{ github.ref_name == 'main' }}
5151
uses: JamesIves/github-pages-deploy-action@6c2d9db40f9296374acc17b90404b6e8864128c8 # v4.7.3
@@ -55,7 +55,7 @@ runs:
5555
folder: ${{ inputs.source-folder }}
5656
target-folder: docs/pr-preview/pr-${{ inputs.pr-number }}/
5757
commit-message: "Clean up doc preview for PR ${{ inputs.pr-number }} (${{ github.sha }})"
58-
58+
5959
- name: Leave a comment after removal
6060
if: ${{ github.ref_name == 'main' }}
6161
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2

.github/actions/install_unix_deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
dependencies:
1111
required: true
1212
type: string
13-
dependent_exes:
13+
dependent_exes:
1414
required: true
1515
type: string
1616

.github/workflows/release-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
run: |
7979
# Use the shared script to download wheels
8080
./ci/tools/download-wheels "${{ inputs.run-id }}" "${{ inputs.component }}" "${{ github.repository }}" "release/wheels"
81-
81+
8282
# Upload wheels to the release
8383
if [[ -d "release/wheels" && $(ls -A release/wheels 2>/dev/null | wc -l) -gt 0 ]]; then
8484
echo "Uploading wheels to release ${{ inputs.git-tag }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ __pycache__/
1616
cache_driver
1717
cache_runtime
1818
cache_nvrtc
19+
cuda_bindings/cuda/bindings/_lib/utils.pxi
1920

2021
# CUDA Python specific (auto-generated)
2122
cuda_bindings/cuda/bindings/_bindings/cydriver.pxd

.pre-commit-config.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ci:
1212
skip: [bandit]
1313
submodules: false
1414

15+
gen_exclude: &gen_exclude '^cuda_bindings/cuda/bindings/.*\.in?$|cuda_bindings/docs/source/module/.*\.rst?$'
16+
1517
# Please update the rev: SHAs below with this command:
1618
# pre-commit autoupdate --freeze
1719
repos:
@@ -30,7 +32,7 @@ repos:
3032
language: python
3133
additional_dependencies:
3234
- https://files.pythonhosted.org/packages/cc/20/ff623b09d963f88bfde16306a54e12ee5ea43e9b597108672ff3a408aad6/pathspec-0.12.1-py3-none-any.whl
33-
35+
3436
- id: no-markdown-in-docs-source
3537
name: Prevent markdown files in docs/source directories
3638
entry: bash -c
@@ -39,6 +41,33 @@ repos:
3941
pass_filenames: false
4042
always_run: true
4143

44+
# Standard hooks
45+
- repo: https://github.com/pre-commit/pre-commit-hooks
46+
rev: "v5.0.0"
47+
hooks:
48+
- id: check-added-large-files
49+
- id: check-case-conflict
50+
- id: check-docstring-first
51+
- id: check-merge-conflict
52+
- id: check-symlinks
53+
- id: check-toml
54+
- id: check-yaml
55+
- id: debug-statements
56+
- id: end-of-file-fixer
57+
exclude: *gen_exclude
58+
- id: mixed-line-ending
59+
- id: requirements-txt-fixer
60+
- id: trailing-whitespace
61+
exclude: *gen_exclude
62+
63+
# Checking for common mistakes
64+
- repo: https://github.com/pre-commit/pygrep-hooks
65+
rev: "v1.10.0"
66+
hooks:
67+
- id: rst-backticks
68+
- id: rst-directive-colons
69+
- id: rst-inline-touching-normal
70+
4271
- repo: https://github.com/PyCQA/bandit
4372
rev: 2d0b675b04c80ae42277e10500db06a0a37bae17 # frozen: 1.8.6
4473
hooks:

SECURITY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ information.
3333

3434
For all security-related concerns, please visit NVIDIA's Product Security portal at
3535
<https://www.nvidia.com/en-us/security>.
36-

ci/tools/download-wheels

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ do
4949
if [[ ! -d "$p" ]]; then
5050
continue
5151
fi
52-
52+
5353
# exclude cython test artifacts
5454
if [[ "${p}" == *-tests ]]; then
5555
echo "Skipping test artifact: $p"
5656
continue
5757
fi
58-
58+
5959
# If we're not downloading "all", only process matching component
6060
if [[ "$COMPONENT" != "all" && "$p" != ${COMPONENT}* ]]; then
6161
continue
6262
fi
63-
63+
6464
echo "Processing artifact: $p"
6565
# Move wheel files to output directory
6666
if [[ -d "$p" ]]; then
@@ -72,4 +72,4 @@ done
7272
rm -rf cuda-*
7373

7474
echo "Downloaded wheels to: $OUTPUT_DIR"
75-
ls -la "$OUTPUT_DIR"
75+
ls -la "$OUTPUT_DIR"

0 commit comments

Comments
 (0)