From 650a62008140c9084a4bb06c6e96861a53875861 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 20:00:46 -0500 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#25) --- .pre-commit-config.yaml | 6 +++--- src/aioapcaccess/__init__.py | 1 + tests/__init__.py | 1 + tests/test_init.py | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b73c8c..b656c7b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ ci: repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.2.0 hooks: - id: ruff args: @@ -22,7 +22,7 @@ repos: - --in-place - --remove-all-unused-imports - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black args: @@ -35,7 +35,7 @@ repos: - --quiet-level=2 exclude_types: [csv, json] - repo: https://github.com/PyCQA/bandit - rev: 1.7.6 + rev: 1.7.7 hooks: - id: bandit args: diff --git a/src/aioapcaccess/__init__.py b/src/aioapcaccess/__init__.py index 813efab..690363c 100644 --- a/src/aioapcaccess/__init__.py +++ b/src/aioapcaccess/__init__.py @@ -1,4 +1,5 @@ """Contains async functions to extract and parse the status of the apcupsd NIS.""" + from __future__ import annotations import asyncio diff --git a/tests/__init__.py b/tests/__init__.py index 8133a56..60f54ee 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,5 @@ """Sample raw status and its parsed dict.""" + from collections import OrderedDict SAMPLE_STATUS = ( diff --git a/tests/test_init.py b/tests/test_init.py index 8729516..cf74ebf 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -1,4 +1,5 @@ """Test functions for aioapcaccess.""" + import asyncio from unittest.mock import MagicMock, patch