chore(pre-commit): update pre-commit hooks

This commit is contained in:
Xuehai Pan 2024-12-30 01:42:15 +08:00
parent 08f2131acd
commit 8ee9d5c430
16 changed files with 79 additions and 91 deletions

View file

@ -604,9 +604,9 @@ class PrometheusExporter: # pylint: disable=too-many-instance-attributes
username = process.username()
alive_pids.add((pid, username))
if (pid, username) not in host_snapshots: # noqa: SIM401,RUF100
host_snapshot = host_snapshots[(pid, username)] = process.host_snapshot()
host_snapshot = host_snapshots[pid, username] = process.host_snapshot()
else:
host_snapshot = host_snapshots[(pid, username)]
host_snapshot = host_snapshots[pid, username]
self.process_info.labels(
hostname=self.hostname,
index=index,