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 Jul 24, 2023
1 parent 11a03ce commit 6265a68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .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.0.278
rev: v0.0.280
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
10 changes: 5 additions & 5 deletions nvitop/api/libnvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@
_sphinx_doc = None
for _name in _const_names:
_attr = _vars_pynvml[_name]
_sphinx_doc = """
.. data:: {}
:type: {}
:value: {!r}
""".format(_name, _attr.__class__.__name__, _attr) # fmt: skip
_sphinx_doc = f"""
.. data:: {_name}
:type: {_attr.__class__.__name__}
:value: {_attr!r}
"""
if _name.startswith('NVML_ERROR_') and _attr in _errcode_to_string:
_reason = _errcode_to_string[_attr]
_sphinx_doc += """
Expand Down

0 comments on commit 6265a68

Please sign in to comment.