diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a1afd2a9..5ef3478a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -48,14 +48,14 @@ jobs: - name: Set up Python id: py - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.7 - 3.12" update-environment: true - name: Set up Python 3.7 id: py37 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.7" update-environment: false @@ -137,7 +137,7 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 if: startsWith(github.ref, 'refs/tags/') with: python-version: "3.7 - 3.12" diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5b40dea4..fa5de64b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -25,14 +25,14 @@ jobs: - name: Set up Python id: py - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.7 - 3.12" update-environment: true - name: Set up Python 3.7 id: py37 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.7" update-environment: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13ad681b..17a08d79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,12 +25,12 @@ repos: - id: debug-statements - id: double-quote-string-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.0 hooks: - id: isort - repo: https://github.com/psf/black diff --git a/nvitop/api/utils.py b/nvitop/api/utils.py index 9f76fc7b..94ad15fd 100644 --- a/nvitop/api/utils.py +++ b/nvitop/api/utils.py @@ -70,7 +70,7 @@ from termcolor import colored as _colored except ImportError: - def _colored( # pylint: disable=unused-argument,too-many-arguments + def _colored( # type: ignore[misc] # pylint: disable=unused-argument,too-many-arguments text: str, color: str | None = None, on_color: str | None = None, @@ -119,7 +119,7 @@ def colored( >>> colored('Hello, World!', 'green') """ if COLOR: - return _colored(text, color=color, on_color=on_color, attrs=attrs) + return _colored(text, color=color, on_color=on_color, attrs=attrs) # type: ignore[arg-type] return text