diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d097b28..57303ff4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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]"] diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index fdc430fb..098bb869 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -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. diff --git a/nvitop/api/device.py b/nvitop/api/device.py index 2596a913..9baa8d31 100644 --- a/nvitop/api/device.py +++ b/nvitop/api/device.py @@ -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 diff --git a/nvitop/api/libcudart.py b/nvitop/api/libcudart.py index 5ef7aa21..fb748d70 100644 --- a/nvitop/api/libcudart.py +++ b/nvitop/api/libcudart.py @@ -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: