Conversation
There was a problem hiding this comment.
Pull request overview
This pull request updates the project configuration and fixes linting issues to comply with ruff 0.15.2. The changes include modernizing import statements, removing unnecessary code, correcting spelling errors, and adjusting linting rules in the configuration.
Changes:
- Converted
import pycuda.gpuarray as gpuarraytofrom pycuda import gpuarraythroughout the codebase - Removed redundant shebangs and unnecessary variable assignments
- Fixed spelling errors and simplified code patterns
- Updated pyproject.toml to ignore new ruff rules and add per-file exceptions
Reviewed changes
Copilot reviewed 47 out of 47 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/undistributed/measure_gpuarray_speed.py | Updated gpuarray import to use from-import style |
| test/undistributed/elwise-perf.py | Updated gpuarray import to use from-import style |
| test/test_gpuarray.py | Removed shebang, updated imports, simplified range calls |
| test/test_driver.py | Updated multiple imports to use from-import style |
| test/test_cumath.py | Consolidated imports into single from-import statement |
| setup.py | Removed shebang |
| pyproject.toml | Added BLE001 to ignore list and S102 to per-file ignores |
| pycuda/tools.py | Fixed spelling error, added noqa comment, simplified conditional |
| pycuda/sparse/pkt_build.py | Updated gpuarray import to use from-import style |
| pycuda/sparse/packeted.py | Updated gpuarray import to use from-import style |
| pycuda/sparse/inner.py | Updated gpuarray import to use from-import style |
| pycuda/sparse/coordinate.py | Updated gpuarray import to use from-import style |
| pycuda/sparse/cg.py | Updated gpuarray import to use from-import style |
| pycuda/scan.py | Consolidated imports into single from-import statement |
| pycuda/gpuarray.py | Updated elementwise import and simplified return statement |
| pycuda/debug.py | Added noqa comment for exec usage |
| pycuda/curandom.py | Simplified conditional using tuple membership |
| pycuda/cumath.py | Consolidated imports into single from-import statement |
| pycuda/compyte | Updated subproject commit reference |
| pycuda/compiler.py | Moved warn import to top level, improved exception handling, changed Exception to RuntimeError |
| pycuda/characterize.py | Updated gpuarray import to use from-import style |
| pycuda/autoprimaryctx.py | Removed redundant global declaration |
| pycuda/autoinit.py | Removed redundant global declaration |
| examples/from-wiki/*.py | Updated imports throughout example files |
| aksetup_helper.py | Simplified print calls and refactored to use comprehensions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.