From af16e5c8f30c1be1a7c5022997b28b30bc2de87c Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Mon, 25 Nov 2024 15:44:58 +0100 Subject: [PATCH] fixup! Drop support for Python 3.8 --- .pre-commit-config.yaml | 2 +- pgactivity/ui.py | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8705a7c1..3fb4420c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: hooks: - id: pyupgrade name: pyupgrade - entry: pyupgrade --py38-plus --exit-zero-even-if-changed + entry: pyupgrade --py39-plus --exit-zero-even-if-changed language: system types: [python] - id: black diff --git a/pgactivity/ui.py b/pgactivity/ui.py index 0cd68d9f..f3e4412b 100644 --- a/pgactivity/ui.py +++ b/pgactivity/ui.py @@ -120,7 +120,7 @@ def main( action_formatter = getattr(term, color) pids = pg_procs.selected if len(pids) > 1: - ptitle = f"processes {', '.join((str(p) for p in pids))}" + ptitle = f"processes {', '.join(str(p) for p in pids)}" else: ptitle = f"process {pids[0]}" with term.location(x=0, y=term.height // 3): diff --git a/pyproject.toml b/pyproject.toml index c20dec4e..616d8251 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,6 @@ dependencies = [ "attrs >= 17.4, !=21.1", "blessed >= 1.15.0", "humanize >= 0.5.1", - "importlib_metadata; python_version < '3.8'", "psutil >= 2.0.0", ]