[PR #57] [MERGED] feat(linter): ruff integration #142

Closed
opened 2026-05-05 03:26:39 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/57
Author: @XuehaiPan
Created: 3/15/2023
Status: Merged
Merged: 3/15/2023
Merged by: @XuehaiPan

Base: mainHead: ruff-integration


📝 Commits (2)

  • 80b9d6f feat: ruff integration
  • 48f05a3 test: add minimal import tests

📊 Changes

34 files changed (+538 additions, -313 deletions)

View changed files

📝 .flake8 (+3 -0)
📝 .github/workflows/build.yaml (+6 -1)
📝 .github/workflows/lint.yaml (+8 -0)
📝 .pre-commit-config.yaml (+6 -0)
📝 nvitop/api/collector.py (+13 -10)
📝 nvitop/api/device.py (+101 -42)
📝 nvitop/api/host.py (+12 -10)
📝 nvitop/api/libcuda.py (+4 -7)
📝 nvitop/api/libcudart.py (+7 -10)
📝 nvitop/api/libnvml.py (+36 -27)
📝 nvitop/api/process.py (+19 -17)
📝 nvitop/api/utils.py (+9 -6)
📝 nvitop/callbacks/keras.py (+2 -2)
📝 nvitop/callbacks/pytorch_lightning.py (+4 -4)
📝 nvitop/cli.py (+29 -13)
📝 nvitop/gui/library/displayable.py (+8 -21)
📝 nvitop/gui/library/history.py (+18 -9)
📝 nvitop/gui/library/keybinding.py (+6 -6)
📝 nvitop/gui/library/libcurses.py (+13 -18)
📝 nvitop/gui/library/messagebox.py (+2 -1)

...and 14 more files

📄 Description

Issue Type

  • Improvement/feature implementation

Description

Add ruff linter integration.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/57 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 3/15/2023 **Status:** ✅ Merged **Merged:** 3/15/2023 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `ruff-integration` --- ### 📝 Commits (2) - [`80b9d6f`](https://github.com/XuehaiPan/nvitop/commit/80b9d6f75c56219d199a2c81a79ec74736d59a9d) feat: `ruff` integration - [`48f05a3`](https://github.com/XuehaiPan/nvitop/commit/48f05a3dec1fdc4ebdf5059bdec04750274931a0) test: add minimal import tests ### 📊 Changes **34 files changed** (+538 additions, -313 deletions) <details> <summary>View changed files</summary> 📝 `.flake8` (+3 -0) 📝 `.github/workflows/build.yaml` (+6 -1) 📝 `.github/workflows/lint.yaml` (+8 -0) 📝 `.pre-commit-config.yaml` (+6 -0) 📝 `nvitop/api/collector.py` (+13 -10) 📝 `nvitop/api/device.py` (+101 -42) 📝 `nvitop/api/host.py` (+12 -10) 📝 `nvitop/api/libcuda.py` (+4 -7) 📝 `nvitop/api/libcudart.py` (+7 -10) 📝 `nvitop/api/libnvml.py` (+36 -27) 📝 `nvitop/api/process.py` (+19 -17) 📝 `nvitop/api/utils.py` (+9 -6) 📝 `nvitop/callbacks/keras.py` (+2 -2) 📝 `nvitop/callbacks/pytorch_lightning.py` (+4 -4) 📝 `nvitop/cli.py` (+29 -13) 📝 `nvitop/gui/library/displayable.py` (+8 -21) 📝 `nvitop/gui/library/history.py` (+18 -9) 📝 `nvitop/gui/library/keybinding.py` (+6 -6) 📝 `nvitop/gui/library/libcurses.py` (+13 -18) 📝 `nvitop/gui/library/messagebox.py` (+2 -1) _...and 14 more files_ </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Description <!-- Describe the changes in detail --> Add `ruff` linter integration. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:26:39 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#142
No description provided.