Skip to content

Commit

Permalink
chore(pre-commit): update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Jun 1, 2024
1 parent 8fb9653 commit e927bba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]"]
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion nvitop/api/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions nvitop/api/libcudart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e927bba

Please sign in to comment.