chore(pre-commit): update pre-commit hooks

This commit is contained in:
Xuehai Pan 2024-06-01 11:19:46 +00:00
parent 8fb96531da
commit e927bba14d
4 changed files with 6 additions and 4 deletions

View file

@ -25,7 +25,7 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
@ -57,7 +57,7 @@ repos:
^docs/source/conf.py$
)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies: [".[toml]"]

View file

@ -5,7 +5,7 @@
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
identity and expression, level of experience, education, socioeconomic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

View file

@ -3311,7 +3311,7 @@ def _cuda_visible_devices_parser(
count = libcuda.cuDeviceGetCount()
uuids = [libcuda.cuDeviceGetUuid(libcuda.cuDeviceGet(i)) for i in range(count)]
except Exception as ex: # noqa: BLE001 # pylint: disable=broad-except
except Exception as ex: # pylint: disable=broad-except
queue.put(ex)
if verbose:
raise

View file

@ -458,6 +458,8 @@ def __LoadCudaLibrary() -> None: # pylint: disable=too-many-branches
lib_filenames = ['libcudart.so']
elif system == 'Windows':
lib_filenames = [f'cudart{bits}.dll', 'cudart.dll']
else:
lib_filenames = []
# Open library
for lib_filename in lib_filenames: